사용자 지정 단추를 만들려고 시도하는 중 내 문제가 나타납니다.사용자 지정 단추 선택기
은 내가
<?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/forwardpress"></item>
<item android:state_focused="true" android:drawable="@drawable/forwardhover"></item>
<item android:drawable="@drawable/forward"></item>
</selector>
및 main.xml에에 내가이 버튼을
문제가가, 버튼을 애니메이션없이 presed 유지됩니다
<Button
android:id="@+id/bFor"
android:background="@drawable/custom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right" />
(/ 드로어 블/사진있는 Custom.xml 고해상도에서 만든 예 Drawable 폴더에 다른 그림이 3 개 있습니다.)
나는 그게 나던 일을 해봤습니다. 도움을위한 thx – sen