I want to put two small buttons, one on left side ( info ) and other on right side ( exit ).
I tried with this
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
android:background="#aaaaaaaa">
<TableRow>
<ImageButton
android:id="@+id/btnInfo"
android:src="@drawable/info"
android:layout_width="32px"
android:layout_height="32px"
android:gravity="left"
android:padding="3dip"/>
<ImageButton
android:id="@+id/btnExit"
android:src="@drawable/error"
android:layout_width="32px"
android:layout_height="32px"
android:gravity="right"
android:padding="3dip"/>
</TableRow>
</TableLayout>
but I got this
and error button is strected and I don’t need that. Can anyone say me what I have done wrong ?
Its very simple using RelativeLayout