Reputation:
Does someone have an example of a split screen xml layout, where the top half of the screen is a webview and the bottom half is a textview/listview or imageview….?
Upvotes: 0
Views: 1135
Reputation: 36312
It's pretty trivial, just like any other view.
<LinearLayout orientation="vertical" ...>
<WebView layout_height="0dp" layout_weight="1" ... />
<TextView layout_height="0dp" layout_weight="1" ... />
</LinearLayout>
Upvotes: 1