0
The layout suitable for bars is the Gridlayout
See an example grid with 2 columns and 2 Lines:
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/GridLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:columnCount="2"
android:rowCount="2"
android:orientation="horizontal"
tools:context=".GridXMLActivity" >
<Button
android:id="@+id/button1"
android:layout_gravity="left|top"
android:text="Button" />
<Button
android:id="@+id/button2"
android:layout_gravity="left|top"
android:text="Button" />
<Button
android:id="@+id/button3"
android:layout_gravity="left|top"
android:text="Button" />
<Button
android:id="@+id/button4"
android:layout_gravity="left|top"
android:text="Button" />
</GridLayout>
Upshot:
Therefore, simply adjust the appropriate settings such as centralization of views, use of ImaveView
, etc..
thanks for the lighting ^^
– Renato Pedrozo
@Renatopedrozo if the answer helped you solving your problem and want to validate it, feel free =D
– viana