Android 4.0子标题(部分)标签样式

Android 4.0子标题(部分)标签样式,第1张

概述所以我看着AndroidDevDesignsite的ICS,所有的应用程序都有这些字幕/节标题:我想知道是否有人知道自定义样式来实现这样的标签.我在AndroidSDK中找不到任何看起来像这样的标签视图,但我真的很喜欢它们的外观.提前致谢!解决方法:所以这就是我最终使用的:<?xmlversion="1.0"enc

所以我看着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子标题(部分)标签样式所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1100766.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存