I have a NavigationDawer with some fragments that contain EditText s. When I βopenβ a fragment, the layout is beautiful (ie Not crushed), but when I bring the keyboard, the layout becomes crushed.
I searched and added this to the manifest:
<activity android:name=".Navigation_Drawer" android:label="@string/app_name" android:windowSoftInputMode="adjustResize" > // This being the important part <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
Since the navigation box is the only activity that contains / runs these fragments, the softInputMode fragment should be controlled by the action, but this code does not matter.
thanks
source share