phil
2009-08-19 22:36:27 UTC
seems pretty straightforward.
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="92px"
android:padding="0px"
android:horizontalSpacing="0px"
android:background="@drawable/my_background">
<ImageButton android:id="@+id/Button1"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button1"
android:background="@+colors/transparent"/>
<ImageButton android:id="@+id/Button2"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button2"
android:background="@+colors/transparent"/>
<ImageButton android:id="@+id/Button3"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button3"
android:background="@+colors/transparent"/>
</LinearLayout>
But doesn't work! argh...
It scrunches the layout background as the background to each button, I
want it to span all three buttons...
tia.
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="92px"
android:padding="0px"
android:horizontalSpacing="0px"
android:background="@drawable/my_background">
<ImageButton android:id="@+id/Button1"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button1"
android:background="@+colors/transparent"/>
<ImageButton android:id="@+id/Button2"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button2"
android:background="@+colors/transparent"/>
<ImageButton android:id="@+id/Button3"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent"
android:src="@drawable/button3"
android:background="@+colors/transparent"/>
</LinearLayout>
But doesn't work! argh...
It scrunches the layout background as the background to each button, I
want it to span all three buttons...
tia.