私はの画像を選択しましたが、私はonPress
の画像を非常に短時間しか表示していません。私はそれが次のウィンドウが開くまで見えるようにしたい。ImageButton onclickの問題
コード:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/bedpres_pressed" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawable/bedpres_pressed" /> <!-- focused -->
<item android:drawable="@drawable/bedpres" /> <!-- default -->
</selector>