1
나는 이미 this solution을 시도했지만 onGlobalLayout()
은 결코 호출되지 않습니다. 예, 이미 매니 페스트에 android:windowSoftInputMode="adjustResize"
을 설정했습니다. 나는 DrawerLayout
내 활동 루트로 레이아웃을 사용하고 있기 때문에키보드가 탐색 창으로 안드로이드에 표시되는지 확인합니다.
은 어쩌면이다 : 나는 activity_drawer_layout
및 실패 findViewById()
만에 main_fragment_layout
을 테스트 한
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<!-- The main content view -->
<LinearLayout
android:id="@+id/main_fragment_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
<!-- The navigation drawer -->
<LinearLayout
android:id="@+id/user_fragment_layout"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:orientation="vertical" >
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
을; onGlobalLayout()
이 호출되지 않습니다. 도와주세요. 미리 감사드립니다.
난 그냥 싶어 살펴 않았다. 그리고 onGlobalLayout() 메서드는 결코 호출되지 않습니다. – Informatheus