1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <attr name="anchorAngleDegrees" format="float"/> 4 5 <attr name="anchorPosition" format="enum"> 6 <enum name="start" value="0" /> 7 <enum name="center" value="1" /> 8 <enum name="end" value="2" /> 9 </attr> 10 11 <attr name="clockwise" format="boolean"/> 12 <attr name="sweepAngleDegrees" format="float" /> 13 <attr name="thickness" format="dimension" /> 14 15 <declare-styleable name="TextAppearance"> 16 <!-- Text color. --> 17 <attr name="android:textColor" /> 18 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> 19 <attr name="android:textSize" /> 20 <!-- Style (normal, bold, italic, bold|italic) for the text. --> 21 <attr name="android:textStyle" /> 22 <!-- Weight for the font used in the TextView. --> 23 <attr name="android:textFontWeight" /> 24 <!-- Typeface (normal, sans, serif, monospace) for the text. --> 25 <attr name="android:typeface" /> 26 <!-- Font family (named by string or as a font resource reference) for the text. --> 27 <attr name="android:fontFamily" /> 28 <!-- Text letter-spacing. --> 29 <attr name="android:letterSpacing" /> 30 <!-- Text variation settings. --> 31 <attr name="android:fontVariationSettings" /> 32 <!-- Font feature settings. --> 33 <attr name="android:fontFeatureSettings" /> 34 </declare-styleable> 35 36 <declare-styleable name="TextViewAppearance"> 37 <!-- Base text color, typeface, size, and style. --> 38 <attr name="android:textAppearance" /> 39 </declare-styleable> 40 41 <declare-styleable name="WearCurvedLineView"> 42 <attr name="maxSweepAngleDegrees" format="float" /> 43 <attr name="sweepAngleDegrees" /> 44 <attr name="thickness" /> 45 <attr name="color" format="color" /> 46 <attr name="strokeCap" format="enum"> 47 <enum name="butt" value="0" /> 48 <enum name="round" value="1" /> 49 <enum name="square" value="2" /> 50 </attr> 51 </declare-styleable> 52 53 <declare-styleable name="WearCurvedSpacer"> 54 <attr name="sweepAngleDegrees" /> 55 <attr name="thickness" /> 56 </declare-styleable> 57 58 <attr name="angularAlignment" format="enum"> 59 <enum name="start" value="0" /> 60 <enum name="center" value="1" /> 61 <enum name="end" value="2" /> 62 </attr> 63 64 <declare-styleable name="SizedArcContainer"> 65 <attr name="sweepAngleDegrees" /> 66 </declare-styleable> 67 68 <declare-styleable name="SizedArcContainer_Layout"> 69 <attr name="angularAlignment" /> 70 </declare-styleable> 71 72 <declare-styleable name="ProtoLayoutFontSet"> 73 <!-- We need to list the different fonts here too. The "proper" way to do 74 this would be to have multiple TextAppearance entries for each one, 75 which specifies a typeface or a weight. That works for normal Text, but 76 can't work for Spannables as there's no Span which applies 77 TextAppearance properly (TextAppearanceSpan doesn't work with weight). 78 79 Instead, just list the fonts here, and we'll go and put them into a 80 Typeface inside the renderer. 81 82 Note that the regular font should also be set in the TextAppearance 83 above, as this drives the defaults for some elements (Spannable). --> 84 <attr name="protoLayoutNormalFont" format="reference|string" /> 85 <attr name="protoLayoutMediumFont" format="reference|string" /> 86 <attr name="protoLayoutBoldFont" format="reference|string" /> 87 </declare-styleable> 88 89 <!-- ProtoLayout theme attributes. --> 90 <declare-styleable name="ProtoLayoutTheme"> 91 <attr name="protoLayoutFallbackTextAppearance" format="reference" /> 92 <attr name="protoLayoutTitleFont" format="reference" /> 93 <attr name="protoLayoutBodyFont" format="reference" /> 94 <attr name="protoLayoutDefaultSystemFont" format="reference" /> 95 <attr name="protoLayoutRobotoFont" format="reference" /> 96 <attr name="protoLayoutRobotoFlexFont" format="reference" /> 97 </declare-styleable> 98</resources> 99