I am developing a single-use device with Android. HW has a full keyboard but no main keys (Back, Home, Overview). Some of the app should be working in immersive mode and they contain EditText fields. When the app is in immersive mode (I used Lock Task Mode), if I select EditText field, a black bar with the same size of the navigation bar, pops up from the bottom. I cannot set qemu.hw.mainkeys=1 because it removes nav bar completely but I need it for some other apps. Is there any way I can hide it for EditText in just some cases? I have access to a full AOSP source.

Answer

You can't, Android does not allow you to focus an EditText without showing the Navigation Bar. (except if you are using an external keyboard)

Probably because some people don't know how to unfocus it and need to press the back button.

  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions