android - Display a WebView -


Is there any idea how I can get the following view: Test is a custom at the top of the page, and below Content is displayed from a url. Currently my layout is:

  & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/ Res / android" android: orientation = "vertical" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; TextView Android: id = "@ id + / test" Android: layout_width = "fill_parent" android: layout_height = "wrap_content" /> & Lt; WebView Android: id = "@ + id / webview" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" /> & Lt; / LinearLayout & gt;  

In order to tighten this layout, I found FindViewById for TextView and set the text for it. Similarly, I get webvive and call load urls ("url") for this, but behavior is not the expected one. The text set is initially displayed briefly and then a fullscreen browser page is shown with the URL content passed.

android: layout_weight = '1' on the webview.


Comments