<https://lh4.googleusercontent.com/-qMFSF96RRwo/Up3ZL-y_jhI/AAAAAAAAAIg/nfxA0p75EkY/s1600/Untitled.png>
<https://lh3.googleusercontent.com/-9U7LyAUTDcA/Up3ZV0WuVgI/AAAAAAAAAIo/3ftZTRdUu-w/s1600/Untitled2.png> Ok, I will post 2 images, I think is the best explanation. In the first one, view3 has the attribute android:layout_alignParentBottom= "false" and view1 is below view2, as it should be. In the second image, the only change is on view3 attribute android:layout_alignParentBottom="true" and in the image, you can see that view1 is not below view2 anymore and somewhere much above it, even the attribute android:layout_below="@id/view2" is set, as you can see in the print screen. I want view3 to be android:layout_alignParentBottom="true" while view1 to be android:layout_below="@id/view2" and view2 to be android:layout_centerVertical="true". Simple, in the theory! view1 = pink, view2 = blue, view3 = green. @12169 The image has no importance. I used View instead of ImageView in the example and the result is the same. On Monday, December 2, 2013 11:43:58 PM UTC+2, MagouyaWare wrote: > > You did not provide enough information... In what way does the rule for > view 1 get invalidated? What does the layout look like in both cases? > Without knowing these things it is going to be very difficult to help, > which is probably why you haven't had a response yet... > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Mon, Nov 18, 2013 at 4:36 AM, Alex Andro > <[email protected]<javascript:> > > wrote: > >> Hi, >> >> It is my first post here, so if do mistakes like wrong place to post or >> improper question please forgive me. >> I want to put view1 below view2 that has the property >> layout_centerVertical="true" in a RelativeLayout. I also have an another >> view, view3 that has the property android:layout_alignParentBottom .When >> I set this property to true it invalidates this rule of view1: >> >> android:layout_below="@id/view2" >> If I change it to false everything is going normal again. Here is the full >> code: As you can see view3 has nothing to do with any other view so I don't >> know where cames the dependency from. >> >> >> >> <ImageView >> android:id="@+id/view2" >> android:layout_height="wrap_content" >> android:layout_width="wrap_content" >> android:adjustViewBounds="true" >> android:padding="10dp" >> android:layout_alignParentRight="true" >> android:layout_centerVertical="true" >> android:src="@drawable/image1"/> >> >> <ImageView >> android:id="@+id/view1" >> android:layout_width="wrap_content" >> android:layout_height="wrap_content" >> android:layout_alignParentRight="true" >> android:layout_below="@id/view2" >> android:adjustViewBounds="true" >> android:src="@drawable/image2" /> >> >> <View >> android:id="@+id/view3" >> android:layout_width="10dip" >> android:layout_height="10dip" >> android:layout_alignParentBottom="true" >> android:layout_alignParentRight="true" >> android:background="#fff" /> >> >> -- >> 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]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> 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 unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

