1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <declare-styleable name="CustomView"> 4 <attr name="multiformat" format="integer|string|boolean"/> 5 6 <attr name="itemType" format="enum"> 7 <enum name="marsupial" value="0"/> 8 <enum name="ungulate" value="1"/> 9 </attr> 10 <attr name="message" format="string"/> 11 12 <attr name="scrollBars"> 13 <flag name="horizontal" value="0x00000100" /> 14 <flag name="vertical" value="0x00000200" /> 15 <flag name="sideways" value="0x00000400" /> 16 </attr> 17 18 <attr name="quitKeyCombo" format="string"/> 19 20 <attr name="numColumns" format="integer" min="0"> 21 <!-- Display as many columns as possible to fill the available space. --> 22 <enum name="auto_fit" value="-1" /> 23 </attr> 24 25 <attr name="sugarinessPercent" format="integer" min="0"/> 26 27 <attr name="gravity"/> 28 29 <attr name="keycode"/> 30 31 <attr name="aspectRatio" format="float" /> 32 <attr name="aspectRatioEnabled" format="boolean" /> 33 <attr name="animalStyle" format="reference" /> 34 35 <!-- Test the same attr name as android namespace with different format --> 36 <attr name="typeface" format="string" /> 37 38 <attr name="someLayoutOne" format="reference" /> 39 <attr name="someLayoutTwo" format="reference" /> 40 41 <attr name="bar" 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="parentStyleReference" format="reference"/> 59 <attr name="styleNotSpecifiedInAnyTheme" format="reference"/> 60 <attr name="title" format="string"/> 61 62 <declare-styleable name="CustomStateView"> 63 <attr name="stateFoo" format="boolean" /> 64 </declare-styleable> 65 66 <declare-styleable name="Theme.AnotherTheme.Attributes"> 67 <attr name="averageSheepWidth" format="reference"/> 68 <attr name="isSugary" format="reference"/> 69 <attr name="logoHeight" format="reference"/> 70 <attr name="logoWidth" format="reference"/> 71 <attr name="styleReference" format="reference"/> 72 <attr name="styleReferenceWithoutExplicitType" format="reference"/> 73 <attr name="snail" format="reference"/> 74 </declare-styleable> 75</resources> 76