我会尽力解释这一点。我目前有一个程序,目前只需单击我创建的一些按钮图形即可在菜单中循环。我也在使用 CE 模拟器来模拟程序的运行情况。我为设备创建了一个皮肤,并添加了按钮(参见下面的 xml),当它们被按下时会做出指示。我基本上想让实际的程序按钮成为静态的,并使皮肤按钮做程序按钮会做的事情(循环通过菜单等)。我只想让皮肤按钮相应地起作用。抱歉,这真的很模糊,我将不胜感激,谢谢。
<?xml version="1.0" encoding="UTF-8"?>
<skin>
<view titleBar="SalusSdk" displayWidth="480" displayHeight="272" displayPosX="147" displayPosY="103" displayDepth="16" mappingImage="down.png" normalImage="defaultskin.png" downImage="Up.png">
<button
toolTip="Button one"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0xFFF200"
/>
<button
toolTip="Button two"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0x3F48CC"
/>
<button
toolTip="Button three"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0x22B14C"
/>
<button
toolTip="Button four"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0xFFAEC9"
/>
<button
toolTip="Button five"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0xFF8000"
/>
<button
toolTip="Button five"
onClick=" DOWN:Key_LeftShift
Key_Z
0x00000015
UP: Key_LeftShift
Key_A"
onPressAndHold="Key_B"
mappingColor="0xA349A4"
/>
</view>
</skin>