"Reference" //References"Color" //Color"Boolean" //Boolean value"Dimension" //Dimension Value"float" //floating point value"integer" //integer value"string" //string"Fraction" //percentages, such as 200%
The format of the enumerated type:
< attr name="orientation"> enum name="horizontal " value="0" /> enum name="vertical " value="1" /></attr>
The XML file uses:
" Vertical "
A flag bit, bit, or operation in the following format:
< attr name="Windowsoftinputmode"> < Flag name ="stateunspecified"Value ="0"/> < Flag name ="stateunchanged"Value ="1"/> < Flag name ="Statehidden"Value ="2"/> < Flag name ="Statealwayshidden"Value ="3"/> < Flag name ="statevisible"Value ="4"/> < Flag name ="statealwaysvisible"Value ="5"/> < Flag name ="adjustunspecified"Value ="0x00"/> < Flag name ="adjustresize"Value ="0x10"/> < Flag name ="Adjustpan"Value ="0x20"/> < Flag name ="adjustnothing"Value ="0x30"/></attr>
The XML file uses:
" stateunspecified | stateunchanged | Statehidden ">
Property definitions can specify multiple types:
" background " " Reference|color " />
The XML file uses:
" @drawable/Image id| #00FF00 "
Format of the Properties type format value in an Android attrs.xml file