Advertisement
Guest User

compass icon

a guest
May 4th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.07 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- icon declaration -->
  3. <Icon version="1" frameRate="0" width="136" height="136" resDensity="320" extraResourcesDensity="320,480" extraScaleByDensity="480:1.412" useVariableUpdater="">
  4.     <VariableBinders>
  5.     <!-- sensor declaration -->
  6.         <SensorBinder type="orientation">
  7.         <!-- if there is only one variable and you do not declare the index, the index is Zero -->
  8.             <Variable name="direction"/>
  9.         </SensorBinder>
  10.     </VariableBinders>
  11.     <!-- image group -->
  12.     <Group>
  13.         <!-- the manipulated image compass-->
  14.         <Image x="68" y="68" w="136" h="136" align="center" alignV="center" pivotX="68" pivotY="68" src="compass.png" />
  15.         <!-- the arrow image -->
  16.         <!-- the direction must be negative to the image looks like an real compass -->
  17.         <Image x="68" y="68" w="136" h="136" align="center" alignV="center" pivotX="68" pivotY="68" rotation="-#direction" src="arrow.png" />
  18.         <!-- the thumb image -->
  19.         <Image x="68" y="68" w="136" h="136" align="center" alignV="center" pivotX="68" src="thumb.png" />
  20.     </Group>
  21. </Icon>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement