1 <?xml version="1.0" ?> 2 <!-- Copyright 2005 The Android Open Source Project --> 3 4 <!-- 5 This is a silly, contrived example of a dual-screen display device. 6 The "front" and "back" are shown side-by-side. I used the phone graphics 7 from two phones, which are presented as if they were glued back-to-back. 8 9 This also illustrates front and back views, which for our purposes just 10 determines which phone is on the left. 11 12 This used to use relative paths (../whatever) to get at the phone content, 13 but relative paths aren't supported in the "AssetManager" world. We now 14 use "::/whatever", which is interpreted by the simulator. (The change from 15 '.' to ':' was done to make it obvious that we weren't using UNIX paths.) 16 --> 17 18 19 <device name="Chimera2000"> 20 <!-- title for menus --> 21 <title>Chimera WeirdPhone 2000</title> 22 23 <!-- primary display characteristics --> 24 <display name="top" width="176" height="220" format="rgb565" refresh="30"/> 25 <display name="bottom" width="176" height="220" format="rgb565" refresh="30"/> 26 27 <mode name="front"> 28 <!-- the "top" device looks like a Samsung phone --> 29 <view display="top" x="49" y="73" rotate="0"> 30 31 <!-- surrounding device image and "patches", drawn in order --> 32 <!-- (phone image is optional) --> 33 <image src="::/samsung-flip-2005/background-176x220.png" x="0" y="0"/> 34 <image src="::/samsung-flip-2005/home-background.png" x="22" y="426"/> 35 <image src="::/samsung-flip-2005/back-background.png" x="179" y="426"/> 36 37 <!-- buttons for which we have highlight images --> 38 <button keyCode="soft-left" src="::/samsung-flip-2005/soft-left.png" x="24" y="388"/> 39 <button keyCode="soft-right" src="::/samsung-flip-2005/soft-right.png" x="182" y="388"/> 40 <button keyCode="home" src="::/samsung-flip-2005/home.png" x="22" y="426"/> 41 <button keyCode="back" src="::/samsung-flip-2005/back.png" x="179" y="426"/> 42 <button keyCode="dpad-up" src="::/samsung-flip-2005/arrow-up.png" x="99" y="399"/> 43 <button keyCode="dpad-down" src="::/samsung-flip-2005/arrow-down.png" x="99" y="461"/> 44 <button keyCode="dpad-left" src="::/samsung-flip-2005/arrow-left.png" x="82" y="411"/> 45 <button keyCode="dpad-right" src="::/samsung-flip-2005/arrow-right.png" x="147" y="411"/> 46 <button keyCode="dpad-center" src="::/samsung-flip-2005/select.png" x="115" y="431"/> 47 48 <button keyCode="1" src="::/samsung-flip-2005/1.png" x="24" y="533"/> 49 <button keyCode="2" src="::/samsung-flip-2005/2.png" x="94" y="544"/> 50 <button keyCode="3" src="::/samsung-flip-2005/3.png" x="173" y="534"/> 51 <button keyCode="4" src="::/samsung-flip-2005/4.png" x="25" y="576"/> 52 <button keyCode="5" src="::/samsung-flip-2005/5.png" x="94" y="581"/> 53 <button keyCode="6" src="::/samsung-flip-2005/6.png" x="172" y="576"/> 54 <button keyCode="7" src="::/samsung-flip-2005/7.png" x="27" y="619"/> 55 <button keyCode="8" src="::/samsung-flip-2005/8.png" x="95" y="621"/> 56 <button keyCode="9" src="::/samsung-flip-2005/9.png" x="168" y="620"/> 57 <button keyCode="0" src="::/samsung-flip-2005/0.png" x="96" y="658"/> 58 <button keyCode="star" src="::/samsung-flip-2005/star.png" x="31" y="659"/> 59 <button keyCode="pound" src="::/samsung-flip-2005/pound.png" x="169" y="659"/> 60 61 <!-- buttons we haven't bothered to create highlight images for, 62 or that aren't visible on-screen --> 63 <button keyCode="volume-up"/> 64 <button keyCode="volume-down"/> 65 <button keyCode="power"/> 66 <button keyCode="clear"/> 67 </view> 68 69 <!-- the "bottom" device looks like an HTC phone --> 70 <view display="bottom" x="36" y="73" rotate="0"> 71 72 <!-- surrounding device image and "patches", drawn in order --> 73 <!-- (phone image is optional) --> 74 <image src="::/htc-audiovox-5600/background.png" x="0" y="0"/> 75 76 <!-- buttons for which we have highlight images --> 77 <button keyCode="soft-left" src="::/htc-audiovox-5600/soft-left.png" x="40" y="312"/> 78 <button keyCode="soft-right" src="::/htc-audiovox-5600/soft-right.png" x="145" y="312"/> 79 <button keyCode="home" src="::/htc-audiovox-5600/home.png" x="57" y="331"/> 80 <button keyCode="back" src="::/htc-audiovox-5600/back.png" x="123" y="333"/> 81 <button keyCode="dpad-up" src="::/htc-audiovox-5600/arrow-up.png" x="59" y="364"/> 82 <button keyCode="dpad-down" src="::/htc-audiovox-5600/arrow-down.png" x="60" y="393"/> 83 <button keyCode="dpad-left"/> 84 <button keyCode="dpad-right"/> 85 <button keyCode="dpad-center" src="::/htc-audiovox-5600/select.png" x="103" y="381"/> 86 87 <button keyCode="1" src="::/htc-audiovox-5600/1.png" x="30" y="411"/> 88 <button keyCode="2" src="::/htc-audiovox-5600/2.png" x="90" y="409"/> 89 <button keyCode="3" src="::/htc-audiovox-5600/3.png" x="159" y="413"/> 90 <button keyCode="4" src="::/htc-audiovox-5600/4.png" x="32" y="445"/> 91 <button keyCode="5" src="::/htc-audiovox-5600/5.png" x="92" y="445"/> 92 <button keyCode="6" src="::/htc-audiovox-5600/6.png" x="157" y="444"/> 93 <button keyCode="7" src="::/htc-audiovox-5600/7.png" x="28" y="476"/> 94 <button keyCode="8" src="::/htc-audiovox-5600/8.png" x="94" y="480"/> 95 <button keyCode="9" src="::/htc-audiovox-5600/9.png" x="156" y="477"/> 96 <button keyCode="0" src="::/htc-audiovox-5600/0.png" x="97" y="513"/> 97 <button keyCode="star" src="::/htc-audiovox-5600/star.png" x="45" y="509"/> 98 <button keyCode="pound" src="::/htc-audiovox-5600/pound.png" x="155" y="511"/> 99 100 <!-- buttons we haven't bothered to create highlight images for, 101 or that aren't visible on-screen --> 102 <button keyCode="volume-up"/> 103 <button keyCode="volume-down"/> 104 <button keyCode="power"/> 105 <button keyCode="clear"/> 106 107 </view> 108 </mode> 109 110 <mode name="back"> 111 <!-- show the back view first, then the front view --> 112 <view display="bottom" x="36" y="73" rotate="0"> 113 114 <!-- surrounding device image and "patches", drawn in order --> 115 <!-- (phone image is optional) --> 116 <image src="::/htc-audiovox-5600/background.png" x="0" y="0"/> 117 118 <!-- buttons for which we have highlight images --> 119 <button keyCode="soft-left" src="::/htc-audiovox-5600/soft-left.png" x="40" y="312"/> 120 <button keyCode="soft-right" src="::/htc-audiovox-5600/soft-right.png" x="145" y="312"/> 121 <button keyCode="home" src="::/htc-audiovox-5600/home.png" x="57" y="331"/> 122 <button keyCode="back" src="::/htc-audiovox-5600/back.png" x="123" y="333"/> 123 <button keyCode="dpad-up" src="::/htc-audiovox-5600/arrow-up.png" x="59" y="364"/> 124 <button keyCode="dpad-down" src="::/htc-audiovox-5600/arrow-down.png" x="60" y="393"/> 125 <button keyCode="dpad-left"/> 126 <button keyCode="dpad-right"/> 127 <button keyCode="dpad-center" src="::/htc-audiovox-5600/select.png" x="103" y="381"/> 128 129 <button keyCode="1" src="::/htc-audiovox-5600/1.png" x="30" y="411"/> 130 <button keyCode="2" src="::/htc-audiovox-5600/2.png" x="90" y="409"/> 131 <button keyCode="3" src="::/htc-audiovox-5600/3.png" x="159" y="413"/> 132 <button keyCode="4" src="::/htc-audiovox-5600/4.png" x="32" y="445"/> 133 <button keyCode="5" src="::/htc-audiovox-5600/5.png" x="92" y="445"/> 134 <button keyCode="6" src="::/htc-audiovox-5600/6.png" x="157" y="444"/> 135 <button keyCode="7" src="::/htc-audiovox-5600/7.png" x="28" y="476"/> 136 <button keyCode="8" src="::/htc-audiovox-5600/8.png" x="94" y="480"/> 137 <button keyCode="9" src="::/htc-audiovox-5600/9.png" x="156" y="477"/> 138 <button keyCode="0" src="::/htc-audiovox-5600/0.png" x="97" y="513"/> 139 <button keyCode="star" src="::/htc-audiovox-5600/star.png" x="45" y="509"/> 140 <button keyCode="pound" src="::/htc-audiovox-5600/pound.png" x="155" y="511"/> 141 142 <!-- buttons we haven't bothered to create highlight images for, 143 or that aren't visible on-screen --> 144 <button keyCode="volume-up"/> 145 <button keyCode="volume-down"/> 146 <button keyCode="power"/> 147 <button keyCode="clear"/> 148 149 </view> 150 151 <!-- our view of the device that shows the main display --> 152 <view display="top" x="49" y="73" rotate="0"> 153 154 <!-- surrounding device image and "patches", drawn in order --> 155 <!-- (phone image is optional) --> 156 <image src="::/samsung-flip-2005/background-176x220.png" x="0" y="0"/> 157 <image src="::/samsung-flip-2005/home-background.png" x="22" y="426"/> 158 <image src="::/samsung-flip-2005/back-background.png" x="179" y="426"/> 159 160 <!-- buttons for which we have highlight images --> 161 <button keyCode="soft-left" src="::/samsung-flip-2005/soft-left.png" x="24" y="388"/> 162 <button keyCode="soft-right" src="::/samsung-flip-2005/soft-right.png" x="182" y="388"/> 163 <button keyCode="home" src="::/samsung-flip-2005/home.png" x="22" y="426"/> 164 <button keyCode="back" src="::/samsung-flip-2005/back.png" x="179" y="426"/> 165 <button keyCode="dpad-up" src="::/samsung-flip-2005/arrow-up.png" x="99" y="399"/> 166 <button keyCode="dpad-down" src="::/samsung-flip-2005/arrow-down.png" x="99" y="461"/> 167 <button keyCode="dpad-left" src="::/samsung-flip-2005/arrow-left.png" x="82" y="411"/> 168 <button keyCode="dpad-right" src="::/samsung-flip-2005/arrow-right.png" x="147" y="411"/> 169 <button keyCode="dpad-center" src="::/samsung-flip-2005/select.png" x="115" y="431"/> 170 171 <button keyCode="1" src="::/samsung-flip-2005/1.png" x="24" y="533"/> 172 <button keyCode="2" src="::/samsung-flip-2005/2.png" x="94" y="544"/> 173 <button keyCode="3" src="::/samsung-flip-2005/3.png" x="173" y="534"/> 174 <button keyCode="4" src="::/samsung-flip-2005/4.png" x="25" y="576"/> 175 <button keyCode="5" src="::/samsung-flip-2005/5.png" x="94" y="581"/> 176 <button keyCode="6" src="::/samsung-flip-2005/6.png" x="172" y="576"/> 177 <button keyCode="7" src="::/samsung-flip-2005/7.png" x="27" y="619"/> 178 <button keyCode="8" src="::/samsung-flip-2005/8.png" x="95" y="621"/> 179 <button keyCode="9" src="::/samsung-flip-2005/9.png" x="168" y="620"/> 180 <button keyCode="0" src="::/samsung-flip-2005/0.png" x="96" y="658"/> 181 <button keyCode="star" src="::/samsung-flip-2005/star.png" x="31" y="659"/> 182 <button keyCode="pound" src="::/samsung-flip-2005/pound.png" x="169" y="659"/> 183 184 <!-- buttons we haven't bothered to create highlight images for, 185 or that aren't visible on-screen --> 186 <button keyCode="volume-up"/> 187 <button keyCode="volume-down"/> 188 <button keyCode="power"/> 189 <button keyCode="clear"/> 190 </view> 191 192 </mode> 193 </device> 194 195