webview doesn't show up underneath button in android layout -
before implemented linear layout button , webview, standalone webview worked fine. added following , button shows up:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="match_parent"> <imagebutton android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/back_nav" /> <webview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </linearlayout>
i want button spans top, webview underneath fills rest of view.
what doing wrong?
your orientation set horizontal, , button set "fill_parent", means webview come right of button, fills entire screen, making webview appear off screen.
to fix this, set orientation of linearlayout "vertical".
Comments
Post a Comment