0
브라우저 앱을 만들려고하고 있는데 지금 레이아웃을 만들려고합니다. 기본적으로 EditText
(주소 표시 줄), WebView
및 바닥. 하단 바를 만들 수없는 문제가 나타납니다. 여기 내 main.xml
입니다 :Android : 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://schemas.android.com/apk/res/android"
android:id="@+id/downBar"
android:layout_width="fill_parent"
android:layout_height = "60px" />
</LinearLayout>
당신은 어떻게 생각하십니까?
덕분에이 일을 ...하지만 당신은 layout_weight를 레이아웃에 미치는 영향을 설명 할 수있는 인간 나타납니다 하단에 막대를 가지고 만들어? 감사. – Alex1987
'layout_weight'는 여러개의 layout 요소의 높이나 너비가'fill_parent'로 설정된 경우에 사용됩니다. 이 요소를 사용하는 또 다른 경우는 너비 (높이)가'fill_parent'로 설정된 요소 다음에 요소가 있고 화면에서 다음 요소를 시작합니다. 'layout_weight'를 사용하면 화면에서 독립적으로 요소의 크기를 쉽게 관리 할 수 있습니다. –