Have you tried android:layout_alignWithParentIfMissing ? http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#attr_android:layout_alignWithParentIfMissing
16 февраля 2012 г. 14:45 пользователь Kristoffer <kris.isak.v...@gmail.com> написал: > > Maye i should try to explain some more what i need. > Lets say that i add one more images, so that iam up to three, if all > images is "active" it would look like this: > CBA if B is "gone" i would now look like this > C A i wanna have it like this CA with no space for B. > > On 16 Feb, 10:39, Kristoffer <kris.isak.v...@gmail.com> wrote: > > Hello. > > Iam kinfa new to relativelayout so iam not sure how to make this > > happens: > > > > I have a relativelayout width fill parent, height wrap content. > > I have a image in the top right corner: > > android:layout_alignParentTop="true" > > android:layout_alignParentRight="true" > > > > The image is not always there (depends on settings in the app) so i > > use: > > android:visibility="gone" when i dont want to show the image. > > This works great, but the problem is that i now wanna add one more > > image that i wanna have to the left of the first image and if the > > first image isent there then the second should be in top right corner. > > > > so i cant use torightof the first image becourse sometimes its not > > there. > > > > Did you understand my question? and do you have a solution for me? > > Thanks > > -- > 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