Android中使用自定义样式和主题
2017-06-18 20:39
260 查看
在activity_main.xml的<TextView>控件中,通过 style="@style/TextSryle"引入定义好的样式,代码如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="math_parent" android:layout_height="match_parent" tool:context=".MainActivity"> <TextView style="@style/TextStyle" android:layout_centerInParent="true" android:text="自定义样式”/> </RelativeLayout>
相关文章推荐
- android自定义style主题样式
- Android使用系统样式及主题
- sencha touch 扩展篇之使用sass自定义主题样式 (下)通过css修改官方组件样式以及自定义图标
- android的Style(样式)与Theme(主题)的使用
- android 系统自带主题样式及自定义主题样式
- Android如何使用样式和主题
- sencha touch 扩展篇之使用sass自定义主题样式 (上)使用官方的api修改主题样式
- android AlertBuilder创建的dialog,使用自定义样式
- Android中资源文件的使用(二):主题和样式
- 自定义android主题样式
- Android中自定义样式(style)与主题(theme)
- Android中的自定义主题和样式
- android UI学习 -- 设置界面的布局(包括style的使用,selector的使用,Checkbox自定义样式,菜单项的样式)
- android的Spinner控件的自定义样式设置以及ArrayAdapter的使用
- 如何使android应用程序使用当前的主题样式
- android: spinner及setDropDownViewResource的使用及自定义Spinner样式
- Android:使用自定义透明Dialog样式的Activity
- android自定义style主题样式
- android---(样式、主题、自定义组件)
- Android之如何自定义样式和主题