You have your green diamond as a child of the LinearLayout. It is not a child of the LinearLayout in your desired result.
On Sun, Nov 20, 2011 at 7:51 AM, Kubilay D. Yılmaz <[email protected]> wrote: > Hi Friends; > I have a problem with layout. > I have 4 images, > > redbackground.png 80px > triangle.png 80px > star.png 80px > green_diamond.png 160px > > I want to show these images like attached file as shouldbe.png > My layout xml is like > .... //above layout fit > <LinearLayout > android:id="@+id/linearLayout1" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_gravity="bottom" > android:background="@drawable/red_background" > android:gravity="center" > > <ImageView > android:id="@+id/imagetriangle" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_weight="1" > android:src="@drawable/triangle" > android:onClick="backClicked" > /> > <ImageView > android:id="@+id/imgb" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_weight="1" > android:src="@drawable/green_diamond" /> > <ImageView > android:id="@+id/imageright" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_weight="1" > android:src="@drawable/star" > android:onClick="digerClicked" > > /> > </LinearLayout> > However it shows as wrong.png. Problem is that I have to put background > image only for 80px > thank you for your advice. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

