Children of RelativeLayout overdraw each other

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Children of RelativeLayout overdraw each other

Postby metter » Tue Jan 06, 2009 2:09 pm

Hello

I am currently trying to set up the screen similar to the way it is in the original sms application (ScrollView on top with the messages, below a TextEdit and a Button).

Amongst other, I tried this setup:

------------RelativeLayout
ScrollView------..||---RelativeLayout
LinearLayout---- ||--- TextEdit and Button
(List items here)-||


Now the problem is that when i first add the ScrollView and then the second RelativeLayout the ScrollView goes "under" the Text Edit and Button. If I add them the other way round the TextEdit and Button are overdrawn by the Scroll View. I have tried using RelativeLayout.LayoutParams.ABOVE and BELOW with the apropriate id's.

Now my question is if I have a general design flaw in my concept or if i have forgotten some setting or..?

Thank you :)
metter
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Jan 06, 2009 2:00 pm

Top

Postby metter » Tue Jan 06, 2009 2:37 pm

Never mind, it is working now (by sheer luck though) :) .

I believe it was a problem with the order of how i added the items & rules.
metter
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Jan 06, 2009 2:00 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 9 guests