user903601
user903601

Reputation:

Android Webview/textview combination XML example

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

Answers (1)

kabuko
kabuko

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

Related Questions