0

Soft-key bar

I want to hide the soft-key bar (in devices that showing it) when my activity is shown. I can't do it programmatically like answers to this question, for some reasons. I only have access to activity's theme (styles.xml).


My main problem is to don't want activity's background (android:windowBackground) goes under the soft-keys bar. But it is better to removing the bar completely.

Community
  • 1
  • 1
Mir-Ismaili
  • 13,974
  • 8
  • 82
  • 100
  • Soft keys cannot be completely hidden. It would limit the user on leaving the app when he/she wants to – nvi9 Jan 27 '17 at 22:07

1 Answers1

0

The best solution I found so far, is to make navigationBarColor transparent like below. But it has some issues.

<style name="SplashScreenAppTheme" parent="AppTheme">
    <item name="android:navigationBarColor">@android:color/transparent</item>
    <item name="android:windowBackground">@drawable/splash</item>
</style>
Mir-Ismaili
  • 13,974
  • 8
  • 82
  • 100