Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Need help with relativelayout
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kristoffer  
View profile  
 More options Feb 16, 4:39 am
From: Kristoffer <kris.isak.v...@gmail.com>
Date: Thu, 16 Feb 2012 01:39:47 -0800 (PST)
Local: Thurs, Feb 16 2012 4:39 am
Subject: 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristoffer  
View profile  
 More options Feb 16, 5:45 am
From: Kristoffer <kris.isak.v...@gmail.com>
Date: Thu, 16 Feb 2012 02:45:23 -0800 (PST)
Local: Thurs, Feb 16 2012 5:45 am
Subject: Re: Need help with relativelayout
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kostya Vasilyev  
View profile  
 More options Feb 16, 6:26 am
From: Kostya Vasilyev <kmans...@gmail.com>
Date: Thu, 16 Feb 2012 15:26:32 +0400
Local: Thurs, Feb 16 2012 6:26 am
Subject: Re: [android-developers] Re: Need help with relativelayout
Have you triedšandroid:layout_alignWithParentIfMissing ?

http://developer.android.com/reference/android/widget/RelativeLayout....

16 ÆÅ×ÒÁÌÑ 2012šÇ. 14:45 ÐÏÌØÚÏ×ÁÔÅÌØ Kristoffer
<kris.isak.v...@gmail.com> ÎÁÐÉÓÁÌ:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »