안드로이드 개발 질문/답변
(글 수 45,052)
광고를 아래와 같이 넣었습니다.
에러는 나지 않는데 광고가 나타나지 않습니다.
광고는 스마트배너로 설정해 놓아서
height를 48px로 고정하고싶지는 않은데
어떻게 해야 광고가 웹뷰 하단에 제대로 나타날까요?
(웹뷰 height를 고정하면 광고가 나타나긴 합니다만, ^^;; 그렇게 할 수는 없으므로...)
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<WebView
android:id="@+id/webview"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/googlead" android:background="#000000" android:layout_gravity="center">
</LinearLayout>




<리니어
w:match
h:match >
<리니어
w:match
h:match
weight:1>
<웹뷰
w:wrap
h:wrap />
</리니어>
<리니어
w:match
h:wrap
weight:0>
<광고뷰/>
</리니어>
</리니어>
이렇게하면 되지 않을까요