android style举例
来源:互联网 发布:面板数据多重共线性 编辑:程序博客网 时间:2024/05/17 21:41
<resources> <style name="AppBaseTheme" parent="android:Theme.Light"></style> <style name="AppTheme" parent="AppBaseTheme"></style> <style name="mystyle"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> <item name="android:background">#A1B9E7</item> <item name="android:textSize">20sp</item> <item name="android:textColor">#F15963</item> <item name="android:text">hehe</item> </style></resources>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView style="@style/mystyle" /> <TextView style="@style/mystyle" /> <TextView style="@style/mystyle" /> <TextView style="@style/mystyle" /> <TextView style="@style/mystyle" /></LinearLayout>
结果
样式可以继承,加上这句
<style name="mystyle" parent="@style/AppBaseTheme">
1 0
- android style举例
- iReport的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
- Android style
- Style android:style/Theme.Dialog
- android:theme & android:style
- android BroadcastReceiver应用举例
- JAVA中的“抽象接口”
- lvs+keepalived实现高可用的负载均衡
- vs项目属性路径配置
- 学习笔记15-OCFoundation框架(一)
- 从大数据菜鸟走上大师的历程 第三讲:Tuple Array Map
- android style举例
- 欢迎使用CSDN-markdown编辑器
- Android之自定义组件
- 异常基础
- 黑马程序员——冒泡排序、选择排序、二分查找的实例运用分析
- fastcgi_finish_request() 正确使用方式
- 文章标题
- Linux vim利用ctags进行自动补全的问题
- Xcode快捷键