You could use layout_weight. Give the elements that don't change size a weight of 0 and the one that does a weight of 1. The two 0-weight views will be their correct height and the 1-weight view will expand to fill the rest of the space
On Jun 9, 1:21 pm, kevin <[email protected]> wrote: > I have a possible simple layout questions. My activity content view > contains a title bar, a webview and a status bar. I put these three > views into a linearlayout and each has height as WRAP_CONTENT. > > The problem is, when first displays, webview doesn't take much space > because the page is not loaded. The status bar is showed right under > title bar. When the page is loaded, webview expands over the screen > size and the status bar is not shown even when scroll down to the > button. (I tried to set webView's height to FILL_PARENT, but status > bar is not shown) > > What is the correct way I can layout this so the title bar always at > the top, the status bar always at the bottom and webview always take > the remaining middle space and have scroll bar when contents takes > larger space? > > Thanks, > Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

