Xml文件  |  195行  |  12.31 KB

<?xml version="1.0" ?>
<!-- Copyright 2005 The Android Open Source Project -->

<!--
This is a silly, contrived example of a dual-screen display device.
The "front" and "back" are shown side-by-side.  I used the phone graphics
from two phones, which are presented as if they were glued back-to-back.

This also illustrates front and back views, which for our purposes just
determines which phone is on the left.

This used to use relative paths (../whatever) to get at the phone content,
but relative paths aren't supported in the "AssetManager" world.  We now
use "::/whatever", which is interpreted by the simulator.  (The change from
'.' to ':' was done to make it obvious that we weren't using UNIX paths.)
-->


<device name="Chimera2000">
    <!-- title for menus -->
    <title>Chimera WeirdPhone 2000</title>

    <!-- primary display characteristics -->
    <display name="top" width="176" height="220" format="rgb565" refresh="30"/>
    <display name="bottom" width="176" height="220" format="rgb565" refresh="30"/>

	<mode name="front">
        <!-- the "top" device looks like a Samsung phone -->
		<view display="top" x="49" y="73" rotate="0">

			<!-- surrounding device image and "patches", drawn in order -->
			<!-- (phone image is optional) -->
            <image src="::/samsung-flip-2005/background-176x220.png" x="0" y="0"/>
            <image src="::/samsung-flip-2005/home-background.png" x="22" y="426"/>
            <image src="::/samsung-flip-2005/back-background.png" x="179" y="426"/>

			<!-- buttons for which we have highlight images -->
            <button keyCode="soft-left"     src="::/samsung-flip-2005/soft-left.png"     x="24" y="388"/>
            <button keyCode="soft-right"    src="::/samsung-flip-2005/soft-right.png"    x="182" y="388"/>
            <button keyCode="home"          src="::/samsung-flip-2005/home.png"          x="22" y="426"/>
            <button keyCode="back"          src="::/samsung-flip-2005/back.png"          x="179" y="426"/>
            <button keyCode="dpad-up"       src="::/samsung-flip-2005/arrow-up.png"      x="99" y="399"/>
            <button keyCode="dpad-down"     src="::/samsung-flip-2005/arrow-down.png"    x="99" y="461"/>
            <button keyCode="dpad-left"     src="::/samsung-flip-2005/arrow-left.png"    x="82" y="411"/>
            <button keyCode="dpad-right"    src="::/samsung-flip-2005/arrow-right.png"   x="147" y="411"/>
            <button keyCode="dpad-center"   src="::/samsung-flip-2005/select.png"        x="115" y="431"/>

            <button keyCode="1"             src="::/samsung-flip-2005/1.png"             x="24" y="533"/>
            <button keyCode="2"             src="::/samsung-flip-2005/2.png"             x="94" y="544"/>
            <button keyCode="3"             src="::/samsung-flip-2005/3.png"             x="173" y="534"/>
            <button keyCode="4"             src="::/samsung-flip-2005/4.png"             x="25" y="576"/>
            <button keyCode="5"             src="::/samsung-flip-2005/5.png"             x="94" y="581"/>
            <button keyCode="6"             src="::/samsung-flip-2005/6.png"             x="172" y="576"/>
            <button keyCode="7"             src="::/samsung-flip-2005/7.png"             x="27" y="619"/>
            <button keyCode="8"             src="::/samsung-flip-2005/8.png"             x="95" y="621"/>
            <button keyCode="9"             src="::/samsung-flip-2005/9.png"             x="168" y="620"/>
            <button keyCode="0"             src="::/samsung-flip-2005/0.png"             x="96" y="658"/>
            <button keyCode="star"          src="::/samsung-flip-2005/star.png"          x="31" y="659"/>
            <button keyCode="pound"         src="::/samsung-flip-2005/pound.png"         x="169" y="659"/>

            <!-- buttons we haven't bothered to create highlight images for,
                 or that aren't visible on-screen -->
			<button keyCode="volume-up"/>
			<button keyCode="volume-down"/>
			<button keyCode="power"/>
			<button keyCode="clear"/>
		</view>

        <!-- the "bottom" device looks like an HTC phone -->
		<view display="bottom" x="36" y="73" rotate="0">

			<!-- surrounding device image and "patches", drawn in order -->
			<!-- (phone image is optional) -->
            <image src="::/htc-audiovox-5600/background.png" x="0" y="0"/>

			<!-- buttons for which we have highlight images -->
            <button keyCode="soft-left"     src="::/htc-audiovox-5600/soft-left.png"     x="40" y="312"/>
            <button keyCode="soft-right"    src="::/htc-audiovox-5600/soft-right.png"    x="145" y="312"/>
            <button keyCode="home"          src="::/htc-audiovox-5600/home.png"          x="57" y="331"/>
            <button keyCode="back"          src="::/htc-audiovox-5600/back.png"          x="123" y="333"/>
            <button keyCode="dpad-up"       src="::/htc-audiovox-5600/arrow-up.png"      x="59" y="364"/>
            <button keyCode="dpad-down"     src="::/htc-audiovox-5600/arrow-down.png"    x="60" y="393"/>
            <button keyCode="dpad-left"/>
            <button keyCode="dpad-right"/>
            <button keyCode="dpad-center"   src="::/htc-audiovox-5600/select.png"        x="103" y="381"/>

            <button keyCode="1"             src="::/htc-audiovox-5600/1.png"             x="30" y="411"/>
            <button keyCode="2"             src="::/htc-audiovox-5600/2.png"             x="90" y="409"/>
            <button keyCode="3"             src="::/htc-audiovox-5600/3.png"             x="159" y="413"/>
            <button keyCode="4"             src="::/htc-audiovox-5600/4.png"             x="32" y="445"/>
            <button keyCode="5"             src="::/htc-audiovox-5600/5.png"             x="92" y="445"/>
            <button keyCode="6"             src="::/htc-audiovox-5600/6.png"             x="157" y="444"/>
            <button keyCode="7"             src="::/htc-audiovox-5600/7.png"             x="28" y="476"/>
            <button keyCode="8"             src="::/htc-audiovox-5600/8.png"             x="94" y="480"/>
            <button keyCode="9"             src="::/htc-audiovox-5600/9.png"             x="156" y="477"/>
            <button keyCode="0"             src="::/htc-audiovox-5600/0.png"             x="97" y="513"/>
            <button keyCode="star"          src="::/htc-audiovox-5600/star.png"          x="45" y="509"/>
            <button keyCode="pound"         src="::/htc-audiovox-5600/pound.png"         x="155" y="511"/>

            <!-- buttons we haven't bothered to create highlight images for,
                 or that aren't visible on-screen -->
			<button keyCode="volume-up"/>
			<button keyCode="volume-down"/>
			<button keyCode="power"/>
			<button keyCode="clear"/>

		</view>
	</mode>

	<mode name="back">
        <!-- show the back view first, then the front view -->
		<view display="bottom" x="36" y="73" rotate="0">

			<!-- surrounding device image and "patches", drawn in order -->
			<!-- (phone image is optional) -->
            <image src="::/htc-audiovox-5600/background.png" x="0" y="0"/>

			<!-- buttons for which we have highlight images -->
            <button keyCode="soft-left"     src="::/htc-audiovox-5600/soft-left.png"     x="40" y="312"/>
            <button keyCode="soft-right"    src="::/htc-audiovox-5600/soft-right.png"    x="145" y="312"/>
            <button keyCode="home"          src="::/htc-audiovox-5600/home.png"          x="57" y="331"/>
            <button keyCode="back"          src="::/htc-audiovox-5600/back.png"          x="123" y="333"/>
            <button keyCode="dpad-up"       src="::/htc-audiovox-5600/arrow-up.png"      x="59" y="364"/>
            <button keyCode="dpad-down"     src="::/htc-audiovox-5600/arrow-down.png"    x="60" y="393"/>
            <button keyCode="dpad-left"/>
            <button keyCode="dpad-right"/>
            <button keyCode="dpad-center"   src="::/htc-audiovox-5600/select.png"        x="103" y="381"/>

            <button keyCode="1"             src="::/htc-audiovox-5600/1.png"             x="30" y="411"/>
            <button keyCode="2"             src="::/htc-audiovox-5600/2.png"             x="90" y="409"/>
            <button keyCode="3"             src="::/htc-audiovox-5600/3.png"             x="159" y="413"/>
            <button keyCode="4"             src="::/htc-audiovox-5600/4.png"             x="32" y="445"/>
            <button keyCode="5"             src="::/htc-audiovox-5600/5.png"             x="92" y="445"/>
            <button keyCode="6"             src="::/htc-audiovox-5600/6.png"             x="157" y="444"/>
            <button keyCode="7"             src="::/htc-audiovox-5600/7.png"             x="28" y="476"/>
            <button keyCode="8"             src="::/htc-audiovox-5600/8.png"             x="94" y="480"/>
            <button keyCode="9"             src="::/htc-audiovox-5600/9.png"             x="156" y="477"/>
            <button keyCode="0"             src="::/htc-audiovox-5600/0.png"             x="97" y="513"/>
            <button keyCode="star"          src="::/htc-audiovox-5600/star.png"          x="45" y="509"/>
            <button keyCode="pound"         src="::/htc-audiovox-5600/pound.png"         x="155" y="511"/>

            <!-- buttons we haven't bothered to create highlight images for,
                 or that aren't visible on-screen -->
			<button keyCode="volume-up"/>
			<button keyCode="volume-down"/>
			<button keyCode="power"/>
			<button keyCode="clear"/>

		</view>

        <!-- our view of the device that shows the main display -->
		<view display="top" x="49" y="73" rotate="0">

			<!-- surrounding device image and "patches", drawn in order -->
			<!-- (phone image is optional) -->
            <image src="::/samsung-flip-2005/background-176x220.png" x="0" y="0"/>
            <image src="::/samsung-flip-2005/home-background.png" x="22" y="426"/>
            <image src="::/samsung-flip-2005/back-background.png" x="179" y="426"/>

			<!-- buttons for which we have highlight images -->
            <button keyCode="soft-left"     src="::/samsung-flip-2005/soft-left.png"     x="24" y="388"/>
            <button keyCode="soft-right"    src="::/samsung-flip-2005/soft-right.png"    x="182" y="388"/>
            <button keyCode="home"          src="::/samsung-flip-2005/home.png"          x="22" y="426"/>
            <button keyCode="back"          src="::/samsung-flip-2005/back.png"          x="179" y="426"/>
            <button keyCode="dpad-up"       src="::/samsung-flip-2005/arrow-up.png"      x="99" y="399"/>
            <button keyCode="dpad-down"     src="::/samsung-flip-2005/arrow-down.png"    x="99" y="461"/>
            <button keyCode="dpad-left"     src="::/samsung-flip-2005/arrow-left.png"    x="82" y="411"/>
            <button keyCode="dpad-right"    src="::/samsung-flip-2005/arrow-right.png"   x="147" y="411"/>
            <button keyCode="dpad-center"   src="::/samsung-flip-2005/select.png"        x="115" y="431"/>

            <button keyCode="1"             src="::/samsung-flip-2005/1.png"             x="24" y="533"/>
            <button keyCode="2"             src="::/samsung-flip-2005/2.png"             x="94" y="544"/>
            <button keyCode="3"             src="::/samsung-flip-2005/3.png"             x="173" y="534"/>
            <button keyCode="4"             src="::/samsung-flip-2005/4.png"             x="25" y="576"/>
            <button keyCode="5"             src="::/samsung-flip-2005/5.png"             x="94" y="581"/>
            <button keyCode="6"             src="::/samsung-flip-2005/6.png"             x="172" y="576"/>
            <button keyCode="7"             src="::/samsung-flip-2005/7.png"             x="27" y="619"/>
            <button keyCode="8"             src="::/samsung-flip-2005/8.png"             x="95" y="621"/>
            <button keyCode="9"             src="::/samsung-flip-2005/9.png"             x="168" y="620"/>
            <button keyCode="0"             src="::/samsung-flip-2005/0.png"             x="96" y="658"/>
            <button keyCode="star"          src="::/samsung-flip-2005/star.png"          x="31" y="659"/>
            <button keyCode="pound"         src="::/samsung-flip-2005/pound.png"         x="169" y="659"/>

            <!-- buttons we haven't bothered to create highlight images for,
                 or that aren't visible on-screen -->
			<button keyCode="volume-up"/>
			<button keyCode="volume-down"/>
			<button keyCode="power"/>
			<button keyCode="clear"/>
		</view>

	</mode>
</device>