Android - Issue with View when set above another View while scrolling

Posted by KevinM on Stack Overflow See other posts from Stack Overflow or by KevinM
Published on 2011-05-14T17:41:18Z Indexed on 2013/10/22 9:55 UTC
Read the original article Hit count: 233

I've created a ScrollView with a RelativeLayout inside of it. I have a TextView aligned at the bottom of the RelativeLayout using layout_alignParentBottom="true" and a ImageView above the TextView using "layout_above". The layout works perfect when I am on a device where the display is large enough to not have to scroll up and down. When I test it on devices where you need to scroll to see the ImageView and TextView the ImageView doesn't line up above the TextView. Actually I haven't a clue where it goes because I can't see it anywhere. It might be behind the TextView. This also happens when I'm editing an EditText with the Soft Keyboard up, which causes the RelativeLayout to scroll.

Anyone knows what's going on here?

© Stack Overflow or respective owner

Related posts about android

Related posts about layout