마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

GridView와 Ad@m AdView가 겹칩니다.ㅠㅠ.

0 추천
아래처럼 하면  GridView와 아담 adView가 겹칩니다.ㅠㅠ.
해결책좀.ㅠㅠ.
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:orientation="vertical" >
 
    <HorizontalScrollView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >
 
            <Button
                android:id="@+id/btn_get_friend"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/btn_get_friend" />
 
            <Button
                android:id="@+id/btn_mail"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/btn_mail" />
        </LinearLayout>
    </HorizontalScrollView>
 
    <GridView
        android:id="@+id/gridview"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:columnWidth="45dp"
        android:gravity="center"
        android:horizontalSpacing="5dp"
        android:numColumns="4"
        android:stretchMode="columnWidth"
        android:verticalSpacing="5dp" >
    </GridView>
 
    <net.daum.adam.publisher.AdView
        android:id="@+id/adView_home_bottom"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center" />
 
</LinearLayout>
 
 
소스
adView = (AdView) findViewById(R.id.adView_home_bottom);
adView.setClientId(id);
adView.setRequestInterval(12);
adView.setAnimationType(AnimationType.FLIP_HORIZONTAL);
adView.setVisibility(View.VISIBLE);

 

해피러브 (160 포인트) 님이 2014년 10월 15일 질문
해피러브님이 2014년 10월 15일 수정
AdView의
  android:layout_width="match_parent"
  android:layout_height="match_parent"

  android:layout_width="320dp"
  android:layout_height="40dp"

강제로 셋팅하니 겹치는 증상은 없는데요.
좀더 우와한 방법은 없을까요?

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...