. Android platform documentation. Pastebin.com is the number one paste tool since 2002. Consider Paul's rocket mass heater . android:layout _weight=”1” /> Although the parent LinearLayout has a layout_width set to match_parent, all of the TextView controls have layout_width set to wrap_content, so the controls do not fill the width of the display. One more important thing is that we never use a Scroll View with a ListView because List View is default scrollable (i.e. Step 04 : Create toolbar_nearby.xml under res ⇒ layout and add the below values. In this article, I will show you How to Divide LinearLayout in Android Equally.I use Android Studio version 3.6.1. *It was pointed out that I should use margins. Android Layouts are extremely powerful. Actually, the LinearLayout already manages a notion of spacing between elements. Step 1: Create a new project and name it LinearLayoutInsideScrollView. Android LinearLayout with evenly space buttons Step 1: Set the android:layout_width="0dp" Step 2: Set the android:layout_weight equally among all button with sum equal to 1.0 5: android:gravity Set a negative layout_marginTop value to your text2 can minimize the space between the text showing, your layout goes like this: