
所以我看着Android Dev Design site的ICS,所有的应用程序都有这些字幕/节标题:
我想知道是否有人知道自定义样式来实现这样的标签.我在AndroID SDK中找不到任何看起来像这样的标签视图,但我真的很喜欢它们的外观.
提前致谢!
解决方法:
所以这就是我最终使用的:
<?xml version="1.0" enCoding="utf-8"?><resources xmlns:androID="http://schemas.androID.com/apk/res/androID"> <style name="sectionheader" parent="androID:Widget.Holo.light.TextVIEw"> <item name="androID:drawableBottom">@drawable/section_header</item> <item name="androID:drawablepadding">4dp</item> <item name="androID:layout_margintop">8dp</item> <item name="androID:paddingleft">4dp</item> <item name="androID:textAllCaps">true</item> <item name="androID:textcolor">@color/emphasis</item> <item name="androID:textSize">14sp</item> </style></resources>其中@ drawable / section_header是:
<?xml version="1.0" enCoding="utf-8"?><shape xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:shape="rectangle"> <size androID:wIDth="1000dp" androID:height="2dp" /> <solID androID:color="@color/emphasis"/></shape>和@ color的:
<?xml version="1.0" enCoding="utf-8"?><resources> <color name="emphasis">#31b6e7</color> <color name="bg_gray">#cecbce</color></resources> 总结 以上是内存溢出为你收集整理的Android 4.0子标题(部分)标签样式全部内容,希望文章能够帮你解决Android 4.0子标题(部分)标签样式所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)