android - Missing TextAppearances.Micro style -
according android developer design style typography, there 4 textappearances (micro, small, medium, large).
but there no predefined style micro:
?android:attr/textappearancemicro android:style/textappearance.micro none of them can found in sources of android. missing?
good question! after researching little bit, didn't find results "textappearance.micro".
on other hand, found official android source style resource related textappearances.
<style name="textappearance.small"> <item name="android:textsize">14sp</item> <item name="android:textcolor">?textcolorsecondary</item> </style> <style name="textappearance.medium"> <item name="android:textsize">18sp</item> </style> <style name="textappearance.large"> <item name="android:textsize">22sp</item> </style> as can see, of them impact text size (except textappearance.small, impact text color). so, can safely site displays text sizes guideline only. on other hand, can add together custom style back upwards textappearance.micro! insert within styles.xml.
<style name="textappearance.micro" parent="@android:style/textappearance.small"> <item name="android:textsize">12sp</item> </style> and utilize like:
<textview ... android:textappearance="@style/textappearance.micro" /> on bit related note, when searched "textappearancemicro", found 3 projects on github. of them adding custom attributes, 1 of them textappearancemicro. also, of them using actionbarsherlock. don't know whether there connection between textappearancemicro , actionbarsherlock, didn't find attribute used anywhere in code.
android android-styles android-textattributes
No comments:
Post a Comment