I need to arrange one background image for my 3 vertically aligned Linearlayouts. I cannot use my parent layout background, because it covers the whole screen. Is there a way to do that ?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/ background"> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:id="@+id/ImageButton01" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> <Button android:id="@+id/ImageButton02" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> <Button android:id="@+id/ImageButton03" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> </LinearLayout> <LinearLayout android:id="@+id/LinearLayout02" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:id="@+id/ImageButton04" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> <Button android:id="@+id/ImageButton05" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> <Button android:id="@+id/ImageButton06" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> </LinearLayout> <LinearLayout android:id="@+id/LinearLayout03" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:id="@+id/ImageButton07" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip"></Button> <Button android:id="@+id/ImageButton08" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:focusable="false"></ Button> <Button android:id="@+id/ImageButton09" android:layout_width="80px" android:layout_height="80px" android:background="@drawable/btnattr" android:scaleType="fitXY" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:focusable="false"></ Button> <!-- android:background="@android:color/transparent" --> > </LinearLayout> </LinearLayout> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en