Android Linear Layout

Android Linear Layout

Android Linear Layout

In Android Layout is the main parent view which is used to setup your controls as per your requirements. for example if you wish to add 3 columns in your screen and want to add 3 buttons in it and then you can use Linear Layout. Basically there are two orientation for Linear Layout, horizontal and vertical. Lets See complete example of the Linear Layout.

Location : res\layout

FileName: activity_main.xml

 

Location : src\package\

FileName : MainActivity.java

 

Output 1

Android Linear Layout

Download Code

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative