Thursday, February 16, 2012

[android-developers] Need help with relativelayout

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment