0
点赞
收藏
分享

微信扫一扫

Android Themes关于totalBar总结


 us take a look at default themes supplied with Android SDK. Below themes will control the background, status bar and title bar.


Status bar: Visible

Status bar: Visible

Status bar: Invisible

Title bar: Visible

Title bar: Invisible

Title bar: Invisible

Theme

Theme.NoTitleBar

Theme.NoTitleBar.Fullscreen

Theme.Black

Theme.Black.NoTitleBar

Theme.Black.NoTitleBar.Fullscreen

Theme.Light

Theme.Light.NoTitleBar

Theme.Light.NoTitleBar.Fullscreen

Theme.Translucent

Theme.Translucent.NoTitleBar

Theme.Translucent.NoTitleBar.Fullscreen


 

Android Themes关于totalBar总结_XML

剩余的就是修改里面的参数了

<activity
android:name=“.Welcome”
android:label=“@string/app_name”
android:theme=“@android:style/Theme.Translucent.NoTitleBar” >
setTheme(android.R.style.Theme_Translucent_NoTitleBar);
setContentView(R.layout.main);
 
<?xml version=“1.0″ encoding=“utf-8″?>
<resources>
<style name=“MyTheme”>
HERE DEFINE ALL THE ATTRIBUTES
</style>


举报

相关推荐

0 条评论