Xml文件  |  37行  |  1.43 KB

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

<device name="MotorolaQ">
    <!-- title for menus -->
    <title>Motorola Q</title>

    <display name="main" width="320" height="240" format="rgb565" refresh="30"/>

	<keyboard qwerty="1" />
	
    <mode name="default">
        <!-- hiptop when closed -->
        <view display="main" x="58" y="121" rotate="0">

            <!-- surrounding device image and "patches", drawn in order -->
            <image src="background.png" x="0" y="0"/>

			<!-- buttons for which we have highlight images -->
			<button keyCode="soft-left"     src="menu-left.png"     x="35"  y="385"/>
			<button keyCode="soft-right"    src="menu-right.png"    x="270" y="385"/>
			<button keyCode="home"          src="home.png"          x="92"  y="425"/>
			<button keyCode="back"          src="back.png"          x="264" y="425"/>
 			<button keyCode="dpad-up"       src="up.png"            x="166" y="400"/>
			<button keyCode="dpad-down"     src="down.png"          x="166" y="444"/>
			<button keyCode="dpad-left"     src="left.png"          x="158" y="406"/>
			<button keyCode="dpad-right"    src="right.png"         x="224" y="406"/>
			<button keyCode="dpad-center"   src="select.png"        x="194" y="419"/>

			<button keyCode="phone-dial"	src="send.png"	        x="35"  y="421"/>
			<button keyCode="phone-hangup"	src="end.png"	        x="333" y="422"/>
        </view>
    </mode>

</device>