开发者

TabActivity Implementing

开发者 https://www.devze.com 2023-03-16 10:58 出处:网络
I am trying to make a tab activity. It works fine . I make android:theme=\"@android:style/Theme.NoTitleBar.Fullscreen\" in the definition in manifest file. But sometimes it does not take the full scr

I am trying to make a tab activity. It works fine . I make android:theme="@android:style/Theme.NoTitleBar.Fullscreen" in the definition in manifest file. But sometimes it does not take the full screen when launching. My program starts from a splash screen. That is an normal activity. My tab is at the buttom of the screen. So the tabs are go inside the screen.

Does Anyone know about the 开发者_JS百科problem?


Remove .FullScreen and instead use

android:theme="@android:style/Theme.NoTitleBar"

with your activity tags in AndroidManifest.XML, worked out for me

EDIT

in your Activity onCreate method use

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
0

精彩评论

暂无评论...
验证码 换一张
取 消