안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#f4b8c0"
android:orientation="vertical" >
<ImageView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginTop="10dip"
android:src="@drawable/bodytitle" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:cacheColorHint="#f4b8c0"
android:choiceMode="singleChoice"
android:listSelector="#ff69b4" />
</RelativeLayout>
</LinearLayout>
<net.daum.mobilead.MobileAdView
android:id="@+id/adview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:visibility="visible" />
</FrameLayout>리스트에 광고 넣을라구 하는데~ 광고가 안뜨네요.. 왜그럴까요?




프레임레이아웃 아래에 있는 리니어레이아웃의 height가 fill_parent라 그런 것 같네요.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
이부분을,
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
로 바꿔보세요ㅎ