Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android pie edittext typed text not showing when soft keyboard is open

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.

like image 706
user3790194 Avatar asked Jan 03 '19 12:01

user3790194


People also ask

How do I show soft keyboard when Edittext is focused?

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.

How do I hide the soft keyboard on android after clicking outside Edittext?

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.


1 Answers

This seems to be an issue with Android Pie. I changed hardware acceleration to true in the manifest and it worked.

android:hardwareAccelerated="true"
like image 135
maxuville Avatar answered Oct 08 '22 00:10

maxuville