AdWhirl을 앱에 통합했습니다. AdWhirl 뷰가 내 주요 활동의 레이아웃 하단에 표시되도록 설정했습니다. 내 기본 레이아웃에 몇 EditText 상자가 있고 응용 프로그램이 처음 시작될 때 텍스트 상자를 클릭하면 소프트 키보드가 정상적으로 표시됩니다. 그러나 다른 활동으로 돌아가서 내 주요 활동으로 돌아 가면 EditText를 클릭하면 소프트 키보드가 맨 위의 AdWhirl보기로 표시되고 EditText 상자를 덮습니다. 나는 이것을 며칠 동안 애써왔다. 어떤 도움을 주시면 감사하겠습니다.Adview가 소프트 키보드 상단에 표시
나는 모든 활동에 대해 내 매니페스트에서 android : windowSoftInputMode = "adjustPan"을 정의했습니다. 당신 글고 상자에 onFocusChangeListener 설정
<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@+id/ImageView02"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@drawable/other_bg_small" android:layout_weight="1"/>
<ImageView android:id="@+id/ImageView01"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:background="@drawable/banner" android:layout_alignParentTop="true"
android:paddingBottom="30dip"/>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1" android:gravity="center" android:id="@+id/table01"
android:layout_below="@id/ImageView01" >
... Table stuff
</TableLayout>
<LinearLayout android:layout_width="fill_parent"
android:id="@+id/ad_layout" android:layout_height="wrap_content"
android:gravity="bottom" android:layout_alignParentBottom="true"
android:layout_alignBottom="@+id/RelativeLayout01" android:layout_weight="1">
<com.adwhirl.AdWhirlLayout android:id="@+id/adwhirl_layout"
android:layout_width="fill_parent" android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
, 유일한 문제는 내가 2의 EditText 상자를 가지고 있고 각 하나에 솔루션을 구현하는 경우, 광고가 –
프로그래밍 방식으로 설정하십시오 ... 보여주지 않을 것입니다 getWindow()를 사용하여. setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); onCreate에서. – Joe
나는 그것이 효과가 있다고 생각한다! 감사! 왜 매니페스트 특성이 집착하지 않는지 궁금합니다 ... –