Create a Layout with Linear orientation

In this article, we will learn how to create a new layout with Linear orientation?
Submitted by Manu Jemini, on December 29, 2017

In our app, the view which user sees is called layout in android. Layout has different types of structure for various different purposes. All our Images, Buttons and Edit-Texts present in this part of your app. In your Java file you start to manipulate the layout.

Hence, learn to create a layout is the first step towards the real job. Open your project or create a new one then open the directory project → app.

Linear layout in Android 1

After opening the app directory, open the directory project → app → res.

Linear layout in Android 2

Then, open the layout folder project → app → res → layout.

Linear layout in Android 3

This is your Layout folder; here you can see all of your layout files. To make a new layout, right click on the folder and select new → layout resource file.

Linear layout in Android 4

After clicking on that, a new window will pop-up, asking for the information about the layout. For now just fill the name and press ok.

Linear layout in Android 5

Your layout file will automatically opens up and you are ready to make your app.

Linear layout in Android 6

Related Tutorials

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT


Comments and Discussions!




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.