androidandroid-titlebar

Permanently hide title bar


I want to permanently hide title. I mean: when I hide title bar and then swipe I see my title bar.So, I want to swipe and do not see my title bar. I've tried to use onKeyDow() but it didn't work. Do somebody have any idea how to do this? This is how I hide title bar:

this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

And this is onKeyDown() method:

@Override
    public boolean onKeyDown(int keyCode, KeyEvent event){
        return false;
    }

Solution

  • Permanently disable or hide the status bar (it's called status bar, not title bar) or the navigation Keys would have a huge security flaw on the system. That would allow malicious applications to hijack the system. So the answer is:

    No, you cannot do that!