1
나는 세 가지 내 당김 폴더에있는 이미지 및 XML 이미지 버튼의 코드를 가지고 : 나는 emualtor에서 실행할 때Android - 이미지 버튼 (XML)이 작동하지 않습니까?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:src="@drawable/button"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
></ImageView>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
: 내 레이아웃 폴더에서
<?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/happycarrot" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawable/largerunicornbutton2" /> <!-- focused -->
<item android:drawable="@drawable/largerunicornbutton" /> <!-- default -->
</selector>
을, 나는 내 주요 XML을 나는 첫 번째 이미지 만 얻는다. 다른 일은하지 않습니다. 이 문제를 해결하기 위해 할 수있는 일이 있습니까?