Edittext input text is not visible and I type in using soft keyboard but once I press next you button I am able to see the input value. code is working fine on older android versions but not on android pie.
android:windowSoftInputMode="stateAlwaysVisible" -> in manifest File. edittext. requestFocus(); -> in code. This will open soft keyboard on which edit-text has request focus as activity appears.
This example demonstrates how do I hide soft keyboard on android after clicking outside edittext. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main. xml.
This seems to be an issue with Android Pie. I changed hardware acceleration to true in the manifest and it worked.
android:hardwareAccelerated="true"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With