Actually if you want your entire layout pan up than you should use :
SOFT_INPUT_ADJUST_PAN
meaning:
getActivity().getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
this will keep the keyboard closed and when opened it’ll push your entire activity up.
Related Contents:
- How to go back to previous page if back button is pressed in WebView?
- How to set text color of a TextView programmatically? [duplicate]
- Android and setting width and height programmatically in dp units
- How to copy files from ‘assets’ folder to sdcard?
- Getting the current Fragment instance in the viewpager
- How to programmatically set maxLength in Android TextView?
- Resolved versions for app (22.0.0) and test app (21.0.3) differ
- How do I make a LinearLayout scrollable?
- Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
- Is there type Long in SQLite?
- What’s “requestCode” used for on PendingIntent?
- What’s the role of adapters in Android?
- How to pass a view’s onClick event to its parent on Android?
- Clear text in EditText when entered [duplicate]
- how to open particular screen on clicking on push notification for flutter
- gradle build fails on lint task
- Android xml error: “No resource found that matches the given name” with RelativeLayout (@id/LinearLayout_acc, @id/ProgressBar_statusScreen)
- Android push notification without firebase
- setHintTextColor() in EditText
- Open page in Twitter app from other app – Android
- How to implement a material design circular progress bar in android
- Remove all items inside linearlayout
- Removing a Fragment from the back stack
- How to switch themes (night mode) without restarting the activity?
- Develop android Application using Html,Css and JavaScript
- How to upgrade an Android project to Java 11
- Filtering ListView with custom (object) adapter
- Decoding bitmaps in Android with the right size
- How to put RecyclerView inside NestedScrollView?
- Running a native library on Android L. error: only position independent executables (PIE) are supported
- uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
- How to set Content Type on HttpURLConnection?
- How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets
- Is it possible to extend AbsListView to make new ListView implementations?
- Set Key and Value in spinner
- Android SDK Manager gives “Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml” error when selecting repository
- Calling one Activity from another in Android
- How to make word wrap in android studio by default
- HTML file input in android webview (android 4.4, kitkat)
- Passing -P parameters to gradle from android studio
- Android Test Driven Development
- What’s the difference between getTargetContext() and getContext (on InstrumentationRegistry)?
- Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1
- How do I view Android application specific cache?
- Difference between getContext() and requireContext() when using fragments
- How to disable a RadioGroup until checkbox is checked
- How to start an Activity from a Service?
- How to extract Sha256 Cert Fingerprint for Branch.io
- Error with SDK package download in Android Studio
- Android alpha animation fadein fadeout with delays