안드로이드 개발 질문/답변
(글 수 45,052)
하단에 이미지 뷰를 넣고 싶은데 안되네요 ㅠㅠ
상단에 4개의 버튼 중간에는 webview 하단에는 이미지 뷰를 넣을려고 이렇게 해봤는데 잘 안되서요 부탁 드립니다.
<?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">
<ProgressBar
android:layout_height="5dp"
android:layout_width="fill_parent"
android:id="@+id/ProgressBar"
style="?android:attr/progressBarStyleHorizontal"
android:max="100"
android:progress="0"
android:visibility="gone"/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/Button00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/home"
android:layout_weight="1"
android:textSize="8pt"/>
<ImageButton
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/back"
android:layout_weight="1"
android:textSize="8pt"/>
<ImageButton
android:id="@+id/Button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/forward"
android:layout_weight="1"
android:textSize="8pt"/>
<ImageButton
android:id="@+id/Button03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/refresh"
android:layout_weight="1"
android:textSize="8pt"/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="0dp"/>
</LinearLayout>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="3">
<ImageView
android:src="@drawable/capital_log"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</FrameLayout>
</LinearLayout>




webview가 들어가있는 linearlayout의 height가 fill_parent가 되어 있네요... wrap_content로 바꾸시고.. weight값을 1로 주세요.
그리고 하단 이미지가 들어있는 레이아웃의 크기를 wrap_content로 해주면 되겠네요.