Theam,style
2024-09-26 22:49:51
Theam
<!-- Base application theme. -->
<!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
Style
<style name="style1">
<item name="android:textSize">25dp</item>
<item name="android:textColor">@color/red</item>
</style>
<style name="style2" parent="style1">
<item name="android:background">@color/yellow</item>
</style>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/style1"
android:text="haah"
android:id="@+id/tv1"/>
<TextView
style="@style/style2"
android:text="haah"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tv2"/>
最新文章
- 一次Redis的使用Bug记录(exec)
- Java同步synchronized与死锁
- [Java] arraycopy 数组复制(转)
- [转]C++学习–基础篇(书籍推荐及分享)
- mv命令(转)
- mfc unicode下一些容易容易搞混的基本类型
- Head of a Gang (map+邻接表+DFS)
- ZOJ 1914 Arctic Network (POJ 2349) MST
- 头一回发博客,来分享个有关C++类型萃取的编写技巧
- C# Url编码 HtmlUrl编码
- MYSQL 日志文件路径错误 1067错误
- Shuttle ESB(四)——宣布订阅模式实例介绍(1)
- Flex 布局教程
- PAT1031:Hello World for U
- drf框架之分页器的用法
- 图解Windows 10下Visual Studio Code的下载和安装
- MySQL根据某个字段查询重复的数据
- 线段树 + 区间更新: HDU 4893 Wow! Such Sequence!
- IDEA SpringBoot Deprecated configuration property ‘server.servlet-path’
- 如何修改macbook的MAC地址