10

I would like my app to hide the Home and Back button which is show at bottom of activity.

I was able to hide the title bar but I am not able to do for Home and Back button.

Is it possible to do it?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
ik024
  • 3,566
  • 7
  • 38
  • 61
  • 1
    Unfortunately not: see my related answer here: http://stackoverflow.com/questions/21574530/hide-on-screen-buttons-in-android-phonegap-app/21577505?noredirect=1#comment32597476_21577505 – keldar Feb 07 '14 at 09:42
  • But I have seen some apps where the Home and Back buttons are hidden but on clicking on the activity it appears back. How is that? – ik024 Feb 07 '14 at 09:45
  • @2Dee thanks :) it worked. I did search but dint come across that post. Anyways thanks :) For others who are searching how to do it here it is: myView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); – ik024 Feb 07 '14 at 09:49

1 Answers1

20

Starting from Android 4.4 KitKat, you can use "immersive" full-screen mode. Here's the detail and some sample codes.

https://developer.android.com/training/system-ui/immersive.html

Yuichi Araki
  • 3,438
  • 1
  • 19
  • 24