Home »
Android
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.
After opening the app directory, open the directory project → app → res.
Then, open the layout folder project → app → res → layout.
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.
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.
Your layout file will automatically opens up and you are ready to make your app.