【移动开发】Android中Theme和Style的使用
来源:互联网 发布:js decode 编辑:程序博客网 时间:2024/05/16 23:59
1
2
3
4
5
6
7
8
<
style
name
=
"simple_dialog"
parent
=
"@android:style/Theme.Dialog"
>
<
item
name
=
"android:windowFrame"
>@null</
item
>
<!-- Dialog的WindowFrame框为无 -->
<
item
name
=
"android:windowNoTitle"
>true</
item
>
<
item
name
=
"android:windowIsFloating"
>true</
item
>
<!-- 是否悬浮在activity上 -->
<
item
name
=
"android:windowIsTranslucent"
>true</
item
>
<!-- 是否半透明 -->
<
item
name
=
"android:backgroundDimEnabled"
>false</
item
>
<!-- 背景是否模糊 -->
</
style
>
1
<application android:theme=
"@style/CustomTheme"
>
1
<activity android:theme=
"@android:style/Theme.Dialog"
>
1
2
3
4
5
6
<
TextView
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:textColor
=
"#00FF00"
android:typeface
=
"monospace"
android:text
=
"@string/hello"
/>
1
2
3
<TextView
style=
"@style/CodeFont"
android:text=
"@string/hello"
/>
1
2
3
4
5
6
7
8
9
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
resources
>
<
style
name
=
"CodeFont"
parent
=
"@android:style/TextAppearance.Medium"
>
<
item
name
=
"android:layout_width"
>fill_parent</
item
>
<
item
name
=
"android:layout_height"
>wrap_content</
item
>
<
item
name
=
"android:textColor"
>#00FF00</
item
>
<
item
name
=
"android:typeface"
>monospace</
item
>
</
style
>
</
resources
>
0 0
- 【移动开发】Android中Theme和Style的使用
- Android中Style和Theme的使用
- Android中Style和Theme的使用
- Android中Style和Theme的使用
- Android中Style和Theme的使用
- Android中Style和Theme的使用
- Android中Theme和Style的使用
- Android中Style和Theme的使用
- Android中Style和Theme的使用
- Android中样式style和主题Theme的使用总结
- Android中Theme和Style的应用
- android 中 style和theme的区别
- Android中style和theme的区别
- Android中style和theme的区别
- Android 中的style和Theme的使用
- Android开发Theme和Style
- android 中style和Theme
- android使用theme和style
- HDU--1028--Ignatius and the Princess III--完全背包
- 如何删除已经部署在android虚拟机上的程序
- Android界面UI组成和事件分发机制简析
- 用DBMS_DATAPUMP获得Oracle导出文件的元数据信息
- ShellSort uva
- 【移动开发】Android中Theme和Style的使用
- HDU-OJ-1421 搬寝室(巩固)
- 用mkfs.jffs2 命令制作jffs2镜像文件 (转)
- hdu1553Going Home
- _objc_setProperty_nonatomic和_objc_setProperty_atomic运行时没有找到的问题
- 分布式云数据中心、NAAS
- ref传递引用类型
- 演讲培训 学习总结
- Stanford Machine Learning 公开课笔记(2) Logistic Regression