Welcome back folks. From this post onwards we will continue with the development of something sensible.
Ok first of all the screenshot below will show you the views of the layout: graphical and the one which allows you to code.
You can drag-and-drop in the graphical interface and write the code in the other. We will be using "coding" not the graphical part. We will use it just to have a quick preview.
Now for the most of the part I will be talking about the XML code only. Beginning from now I am going to explain each and every line.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
This is your first line, you dont have to remember it as it is generated by the IDE itself. The main part that has to be noticed is that the Layout type mentioned here is relative.
And we will change it to a Linear Layout since we are still a beginner, so consider that Relative Layout at this point of time is not better for you. Please follow the following screenshot to change it to a Linear Layout.
Same as you do in HTML, you have to open and close the Linear Layout Tag.
When you see the layout in your graphical view. You wont find any changes but that doesnt means that they are the same. We will go deep into it further later. You have to deal with Linear Layout just keep that in mind.
The next post will be about some of its attributes and their respective explanations.
Ok first of all the screenshot below will show you the views of the layout: graphical and the one which allows you to code.
You can drag-and-drop in the graphical interface and write the code in the other. We will be using "coding" not the graphical part. We will use it just to have a quick preview.
Now for the most of the part I will be talking about the XML code only. Beginning from now I am going to explain each and every line.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
This is your first line, you dont have to remember it as it is generated by the IDE itself. The main part that has to be noticed is that the Layout type mentioned here is relative.
And we will change it to a Linear Layout since we are still a beginner, so consider that Relative Layout at this point of time is not better for you. Please follow the following screenshot to change it to a Linear Layout.
Same as you do in HTML, you have to open and close the Linear Layout Tag.
When you see the layout in your graphical view. You wont find any changes but that doesnt means that they are the same. We will go deep into it further later. You have to deal with Linear Layout just keep that in mind.
The next post will be about some of its attributes and their respective explanations.



















