android 抽取主题样式
2016-03-17 08:44
316 查看
1、定义style.xml文件
<style name="ButtonSytle" parent="@style/Themestyle"> //继承style
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:text">提交</item>
<item name="android:layout_alignParentBottom">true</item>
</style>
2、在控件中引用
<Button
style="@style/ButtonSytle"
android:textColor="#ff0000"/>
<style name="ButtonSytle" parent="@style/Themestyle"> //继承style
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:text">提交</item>
<item name="android:layout_alignParentBottom">true</item>
</style>
2、在控件中引用
<Button
style="@style/ButtonSytle"
android:textColor="#ff0000"/>
相关文章推荐
- android studio 插件
- Android finishOnTaskLaunch 属性
- AndroidManifest.xml文件详解(activity)(一)
- Android Studio使用ButterKnife插件
- android studio命令行错误gradlew: Permission denied
- Android:Android Support Design之TabLayout使用详解
- Android Studio使用指南(2)
- Android中fragment_main.xml文件里的组件获取的问题
- 子线程Handler.sendMessage 报错:Attempt to invoke virtual method 'boolean android.os.Handler.sendMessage
- Android实战技巧:如何在ScrollView中嵌套ListView
- Android——Activity练习
- android 9png的效果a
- Android——Activity初学
- Android APK系列6-------APK反编译
- Android APK系列5-------修改APK中的内容
- Android APK系列4-------Android编译APK后的系统结构
- Android APK系列3-------使用platform密钥来给apk文件签名
- Android apk系列2-------系统签名(生成release版本的系统)
- Android apk系列1-------APK签名
- Android消息推送4.2---AndroidPN框架源码解析