i would like to have three buttons taking equal amount of available space horizontally in a row. I used android:layout_gravity. What is the problem?
android:layout_gravity
layout
Please consider the following layout snippet:
2 things to note above.
A. I created a LinearLayout with weightSum of 3.
B. Then inside that I create 3 elements each having layout_weight of 1 so that I can have my child elements distribute the entire space among themselves evenly.