开发者

Android: issue with the xml Layout

开发者 https://www.devze.com 2023-02-10 11:35 出处:网络
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 mak

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_weightset to "1" and your bar at the bottom should appear

0

精彩评论

暂无评论...
验证码 换一张
取 消