android style
来源:互联网 发布:淘宝买的衣服没有吊牌 编辑:程序博客网 时间:2024/05/19 22:06
Android平台定义的主题样式:
android:theme="@android:style/Theme.Dialog"
•android:theme="@android:style/Theme.NoTitleBar"
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Light"
•android:theme="@android:style/Theme.Light.NoTitleBar"
•android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Black"
•android:theme="@android:style/Theme.Black.NoTitleBar"
•android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Wallpaper"
•android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
•android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
•android:theme="@android:style/Translucent" 半透明效果
•android:theme="@android:style/Theme.Translucent.NoTitleBar"
•android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Panel"
Android平台定义了三种字体大小:
"@android:attr/textAppearanceLarge"
"@android:attr/textAppearanceMedium"
"@android:attr/textAppearanceSmall"
Android字体颜色:
android:textColor="@android:attr/textColorPrimary"
android:textColor="@android:attr/textColorSecondary"
android:textColor="@android:attr/textColorTertiary"
android:textColor="@android:attr/textColorPrimaryInverse"
android:textColor="@android:attr/textColorSecondaryInvers
Android的ProgressBar样式:
style="@android:attr/progressBarStyleHorizont
style="@android:attr/progressBarStyleLarge"
style="@android:attr/progressBarStyleSmall"
style="@android:attr/progressBarStyleSmallTit
分隔符
横向:
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@android:attr/listDivider" />
纵向:
<View android:layout_width="1dip"
android:layout_height="fill_parent"
android:background="@android:attr/listDivider" /
CheckBox样式
style="@android:attr/starStyle"
类似标题栏效果的TextView
style="@android:attr/listSeparatorTextViewSty
其它有用的样式
android:layout_height="@android:attr/listPreferredItemHeight"
android:paddingRight="@android:attr/scrollbarSize"
style="@android:attr/windowTitleBackgroundSty
style="@android:attr/windowTitleStyle"
android:layout_height="@android:attr/windowTitleSize"
android:background="@android:attr/windowBackground"
修改Activity的标题栏样式
如在styles.xml中增加
<resources>
</resources>
接着再修改AndroidManifest.xml文件,找到要自定义标题栏的Activity,添加上android:theme值,比如:<activity android:name=".MainActivity" android:theme="@style/autoWindowTitlebar">
去掉所有Activity界面的标题栏
修改AndroidManifest.xml
在application 标签中添加android:theme=”@android:style/Theme.NoTitleBar”
- Android style
- android style
- android style
- android Style
- android Style
- android Style
- android style
- android Style
- android Style
- Android style
- Android - style
- android style
- Android style
- Style android:style/Theme.Dialog
- android:theme & android:style
- Android Style Resource --- style样式的定义
- android 控件样式 ( style="@style/xxxxx" )
- Android Code Style Rules
- ios开发答疑录系列---(三)C/C++ 数组的初始化
- OO设计原则
- Android应用程序窗口(Activity)的视图对象(View)的创建过程分析
- [置顶] 程序员面试、算法研究、编程艺术、红黑树、数据挖掘5大系列集锦
- Android Service学习之AIDL实例
- android style
- UART driver
- centOS快捷键
- CCMenuItemSprite 如何更改sprite 图片
- Python SocketServer模块
- django 分页
- 如何给磁盘文件排序
- Linux下C程序进程地址空间布局
- Java之美[从菜鸟到高手演变]系列之博文阅读导航