I'm making Cosu application and it's running on locktask mode. I have found guides to make NavigationBar and ActionBar fully transparent and hidden but if user swipes from bottom or top of the screen it will show back button on bottom NavigationBar.
I have added code snippet that hides it again quickly.
/* Hides Navigation bar again if user swipes it visible */
@Override
protected void onResume() {
getWindow().getDecorView().setOnSystemUiVisibilityChangeListener(
new View.OnSystemUiVisibilityChangeListener() {
@Override
public void onSystemUiVisibilityChange(int visibility) {
getWindow().getDecorView().setSystemUiVisibility(flags);
}
});
super.onResume();
}
Is there any way to actually change that back button icon or it's color to transparent using styles or something?? I have tried to find out information on this but what i have found is using extra applications to modify back button image.
I can disable back button event by using following code but doesn't hide it's visibility
@Override
public void onBackPressed() {
// nothing to do here
}