1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <declare-styleable name="CustomView"> 4 <attr name="bar" format="string"/> 5 6 <attr name="multiformat" format="integer|string|boolean"/> 7 8 <attr name="itemType" format="enum"> 9 <enum name="marsupial" value="0"/> 10 <enum name="ungulate" value="1"/> 11 </attr> 12 <attr name="message" format="string"/> 13 14 <attr name="scrollBars"> 15 <flag name="horizontal" value="0x00000100" /> 16 <flag name="vertical" value="0x00000200" /> 17 <flag name="sideways" value="0x00000400" /> 18 </attr> 19 20 <attr name="quitKeyCombo" format="string"/> 21 22 <attr name="numColumns" format="integer" min="0"> 23 <!-- Display as many columns as possible to fill the available space. --> 24 <enum name="auto_fit" value="-1" /> 25 </attr> 26 27 <attr name="sugarinessPercent" format="integer" min="0"/> 28 29 <attr name="gravity"/> 30 31 <attr name="keycode"/> 32 33 <attr name="aspectRatio" format="float" /> 34 <attr name="aspectRatioEnabled" format="boolean" /> 35 <attr name="animalStyle" format="reference" /> 36 37 <!-- Test the same attr name as android namespace with different format --> 38 <attr name="typeface" format="string" /> 39 40 <attr name="someLayoutOne" format="reference" /> 41 <attr name="someLayoutTwo" format="reference" /> 42 </declare-styleable> 43 44 <attr name="gravity"> 45 <flag name="center" value="0x11" /> 46 <flag name="fill_vertical" value="0x70" /> 47 </attr> 48 49 <attr name="keycode"> 50 <enum name="KEYCODE_SOFT_RIGHT" value="2" /> 51 <enum name="KEYCODE_HOME" value="3" /> 52 </attr> 53 54 <attr name="responses" format="reference"/> 55 <attr name="string1" format="string"/> 56 <attr name="string2" format="string"/> 57 <attr name="string3" format="string"/> 58 <attr name="parent_string" format="string"/> 59 <attr name="child_string" format="string"/> 60 <attr name="child_string2" format="string"/> 61 <attr name="parentStyleReference" format="reference"/> 62 <attr name="styleNotSpecifiedInAnyTheme" format="reference"/> 63 <attr name="stringReference" format="reference"/> 64 <attr name="anAttribute" format="reference"/> 65 <attr name="attributeReferencingAnAttribute" format="reference"/> 66 <attr name="circularReference" format="reference"/> 67 <attr name="title" format="string"/> 68 69 <declare-styleable name="CustomStateView"> 70 <attr name="stateFoo" format="boolean" /> 71 </declare-styleable> 72 73 <declare-styleable name="Theme.AnotherTheme.Attributes"> 74 <attr name="averageSheepWidth" format="reference|dimension"/> 75 <attr name="isSugary" format="reference|boolean"/> 76 <attr name="logoHeight" format="reference|dimension"/> 77 <attr name="logoWidth" format="dimension"/> 78 <attr name="styleReference" format="reference"/> 79 <attr name="snail" format="reference"/> 80 <attr name="altTitle" format="reference|string"/> 81 </declare-styleable> 82</resources> 83