我在eclipse中做了一个图片按钮,然后用android sdk包中的模拟器运行了它。
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/cat1" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawable/cat2" /> <!-- focused -->
<item android:drawable="@drawable/cat3" /> <!-- default -->
</selector>
“按下”和“默认”与鼠标一起工作,但有什么方法可以使它聚焦吗?如果不能,是否需要在实际的 Android 设备上模拟它?
最佳答案
使用轨迹球或箭头键在 View 之间移动。
关于android - 您如何关注 Android 开发者模拟器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3398330/