hello pancakes !! this is my first post here hope you like me too as brijesh :)
so starting for the first app ..
- Open up new android application and continue as explained previously, if you get any problem with that check the procedure again here .
- After you complete with making g it you will get the starting screen .Up-till now everything is just as we previously did .hence forth the real work starts. we will be working on activity_main.xml first.
- On activity_main.xml we will automatically be having some content as shown below and for rest we will be adding some other things too.
- EXPLAINING THE CODEThe first segment we have here is
1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2. xmlns:tools="http://schemas.android.com/tools"
3. android:layout_width="match_parent"
4. android:layout_height="match_parent"
5. tools:context=".MainActivity" >- This line is default which actually import pacakages.
- This line defines the where to import the android tools.
- android:layout_width defines the width of our app on emulator.
- android:layout_height defines height of our app on emulator.
- This line defines where to start ie, MainActivity
The second segment we have is
1. <TextView
2. android:layout_width="wrap_content"
3. android:layout_height="wrap_content"
4. android:layout_centerHorizontal="true"
5. android:layout_centerVertical="true"
6. android:text="@string/hello_world" />- It marks the beginning of Textview tag which actually contains the features about how things are to be arranged in text view
- the other tags are preety self explainatory , you may try on some of them yourself by deleting the values upto = and eclipse will come to your service.
- in last one android:text="@string/hello_world" we actually referenced the string hello world saved in values. in other places too we will be using the same .
This was all for today we will get on with the more on xml on next post. Will be waiting for comments/ suggestions. :)


Yes.I am following your blog and waiting for more further posts bro. You are really doing great job. Please make 2-3 posts daily man. I can't wait :P Too Android Hungry.
ReplyDeleteThankyou...We are trying our best...Thanks to our special member Mist for her contribution..Well done Mist..
Deletethanks @saggy for following , i know this time the post has been delayed a bit (was busy in some personal project) bu dont worry now we will try to update it as frequently as possible.
DeleteSuggestions and queries are also welcome
@brijesh thanks mate :)