如何永久禁用操作栏操作

2023-09-11 20:20:29 作者:請允許珴尐尐旳驕傲

我可以用这个code隐藏在蜂窝操作栏:

I can hide the action bar in honeycomb using this code:

getActionBar().hide();

但是,当键盘打开,用户复制 - 粘贴任何东西,操作栏再次出现。 如何禁用操作栏永久?

But when the keyboard opens, and user copy-pastes anything, the action bar shows again. How can I disable the action bar permanently?

推荐答案

通过设置活动主题清单,

By setting activity theme in Manifest,

<activity
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
....
>