10

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.

user3790194
  • 111
  • 1
  • 7

1 Answers1

27

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

android:hardwareAccelerated="true"
maxuville
  • 521
  • 1
  • 5
  • 19
  • 2
    Had the same issue where this solved it. However, in my case I was able to find one more alternative solution: constraint layout. This was causing the issue, so to speak. Removing (or upgrading it) would also resolve it. So, if for whatever reason you don't want to add that attribute, you may want to look up into refactoring your xml. – arhon Mar 11 '19 at 09:28
  • 1
    This worked for me too. But don't understand how it worked. – viper Jun 25 '19 at 12:04
  • ui related issue – Amar Singh Jul 14 '20 at 11:02
  • Hardware acceleration is enabled by default if your Target API level is >=14 https://developer.android.com/guide/topics/graphics/hardware-accel – iCantC Nov 10 '21 at 05:07