I want to create an android activity that looks like the one below this. This one has 4 layouts and one has a scroll view. When I add layouts, they get put on the bottom of each other or off the screen. How can I make them fit on one screen.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The layout parameters for
LinearLayoutcan take aweightattribute that you can use to divide space in a relative fashion among its child views. If, for instance, you want to give two buttons in a LinearLayout the same space, you can set the layout weight on both to the same non-zero numeric value (doesn’t matter what the value is as long as its equal, i.e. 0.5/0.5 will do just as 1/1):Don’t forget to set the dimension of the axis along which you want the view to grow to 0, i.e. if you want to stretch horizontally, set
android:layout_width="0px".