Android RelativeLayout and button problem?

Your layout is too big for the screen, so you'll have to wrap the info_block in a ScrollView and align that to the top, as well as its bottom to the top of the button.

Your layout is too big for the screen, so you'll have to wrap the info_block in a ScrollView, and align that to the top, as well as its bottom to the top of the button. This means you'll have to define the Button before the info_block, so that you can align the info_block's bottom to the button's top. To clarify, the problem is your info_block's bottom edge is not bound to anything, so draw the button and you will have an edge to lay against.

You should always draw the fixed elements in a relative layout first to give position for the unbound elements to edge against.

You don't need to place it on a ScrollView as a relativelayout can be made to scroll – kelton52 Jul 4 at 17:03 He wants the button to be fixed at bottom as part of the layout. How would you scroll the info_block in this situation then? – Mark Fisher Jul 4 at 17:20 Ah, missed that, you're correct then :) – kelton52 Jul 4 at 17:26.

That way a user can use their finger to move the whole layout up and down.

I will have to check tomorrow, but fillViewport seems to be the ScrollView attribute I want. Explained in: ScrollView’s handy trick. Edited to add this did resolve my issue.

The two important things are: To use fillViewport="true" in the ScrollView, this ensures the child element expands to fill the display. This alone won't be enough, the next thing to ensure: The last element before the Button has android:layout_weight="1.0" to ensure it fills the space created by the ScrollView having fillViewport="true".

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions