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 | |



剩余的就是修改里面的参数了
<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>
本文介绍了Android SDK中默认提供的多种主题及其属性配置,包括状态栏、标题栏的可见性设置及不同样式主题,如透明、黑色、白色等,并提供了具体的XML配置示例。
364

被折叠的 条评论
为什么被折叠?



