Dear Mark, Thank you for your concern however, My code is on below and result is same.
<RelativeLayout android:id="@+id/relativeLayout1" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_gravity="center" > <LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/background" > <ImageView android:id="@+id/imgTriangle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/imgTriangle" /> <ImageView android:id="@+id/imgStar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/imgStar" /> </LinearLayout> <ImageView android:id="@+id/imgDiamond" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center_horizontal" android:src="@drawable/imgDiamond" /> </RelativeLayout> On 20 November 2011 16:00, Mark Murphy <mmur...@commonsware.com> wrote: > On Sun, Nov 20, 2011 at 8:57 AM, Kubilay D. Yılmaz > <kubilayd.yil...@gmail.com> wrote: > > if i put green diamond to under another child linearlayout, result will > not > > change, because parent linearlayout fill its height what it has inside > it. > > so what should be the solution > > The green diamond should be *outside* the LinearLayout. > > RelativeLayout > LinearLayout > green diamond > > By having the green diamond appear later in the RelativeLayout parent, > it will float over top of the red LinearLayout. Yet the size of the > red LinearLayout will not be related to the size of the green diamond. > > -- > 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 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 > -- 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