Android: issue with the xml Layout
I am trying to create a browser app, and right now I'm trying to create the layout - which is basically, an EditText
(as address bar), a WebView
and a bar in the bottom. The problem that I can't make the bottom bar appear. Here is my main.xml
:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<EditText
android:id="@+id/addressbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background" />
<com.android.ibrowser.myWebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/browser"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<View xmlns:android="http://sch开发者_高级运维emas.android.com/apk/res/android"
android:id="@+id/downBar"
android:layout_width="fill_parent"
android:layout_height = "60px" />
</LinearLayout>
What do you think?
make your WebView having the attribute layout_weight
set to "1"
and your bar at the bottom should appear
精彩评论