I have a project in which i want to make the Layouts
FullScreen
or make the Android Soft
keys hidden.
I tried solutions by Googling like
- Hide Action Bar
- SYSTEM_UI_FLAG_HIDE_NAVIGATION
- Also test the change of theme in app
Theme.AppCompat.Light.NoActionBar
I disabled Back
Key using this code :
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if(keyCode == KeyEvent.KEYCODE_HOME)
{
Log.i("Home Button", "Clicked");
}
if(keyCode==KeyEvent.KEYCODE_BACK)
{
finish();
}
return false;
};
But i want to disable all Soft Keys or Hide them.
Note that the device in which my app will work is Lenovo Tab2
and has Virtual
Soft keys
like this Pic.