Hi @all.

I currently try to design a "simple" layout with android. What it should do:

At the top and bottom of the screen should be a bar with a little content. 
LinearLayout, horizontal.

Between the bars is the space for the content.

This content should be devided into a "large" upper region and a linear 
layout with (right aligned) buttons at the bottom.

If there is not too much content the content area should be display 
centered in the available space. If there are more elements in the content, 
the area should grow until it fills the complete space between top and 
bottom bars. The Buttons below the content should always be visible. The 
area for the content should be scrollable in this case.

I tried something like this:

RelativeLayout
LinearLayout TopBar (AlignParentTop)
Button1 Button2 ...
LinearLayout BottomBar (AlignParentBottom)
ButtomA ButtonB ...

This works fine.

Then i tried to add an additional element
FrameLayout (Above Bottombar, Below TopBar)

This FrameLayout fills the remaining space. Fine.

Now i need a layout like this:

RelativeLayout (wrap_content Width/Height)
ScrollView
LinearLayout CONTENT (sometimes small, sometimes really large)
LinearLayout ButtonBar (horizontal)
ButtonX ButtonY ...

If i attach the buttonbar to the bottom of the relative layout the relative 
layout grows and does no longer wrap around the content. Instead it's 
height fills the complete available space.

If i put the buttonBar into the upper Relative layout i can fit it between 
Content and bottomBar. But if the contentn grows the buttonBar slides down 
outside the screen.

Is it possible that such a simple layout is not managable with Android?

I am working for hours on this and always something does not work :-( HELP 
PLEASE!!!

Best regards, Udo

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<<attachment: layout_small_content.jpg>>

<<attachment: layout_large_content.jpg>>

Reply via email to