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 |
剩余的就是修改里面的参数了
<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>
更多相关文章
- mybatisplus的坑 insert标签insert into select无参数问题的解决
- Python技巧匿名函数、回调函数和高阶函数
- python list.sort()根据多个关键字排序的方法实现
- fragment
- android Gallery 详解
- android客户端访问网络工具类
- android登录超时显示demo
- Android中Fragment的Arguments
- Android(安卓)Http Get/Post提交请求