我的select选择器也没有问题的
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/android_big_button_focus" android:state_focused="true"/>
<item android:drawable="@drawable/android_big_button_disable"/>
</selector>
.xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/background"
tools:context="${relativePackage}.${activityClass}" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#888B79">
<TextView
android:id="@+id/tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="8dp"
android:text="我的京东"
android:textColor="#ffffff"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/frmyjd_tv_zhengshu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="手机号码:"
android:textSize="18dp" />
<EditText
android:id="@+id/et_phone"
android:layout_width="match_parent"
android:layout_height="38dp"
android:hint="请输入号码"
android:background="@drawable/bg_edittext"
android:inputType="number"
android:textSize="12dp" />
</LinearLayout>
<LinearLayout
android:id="@+id/ilout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="10dp"
android:layout_marginTop="15dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/frmyjd_tv_pass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="登录密码:"
android:textSize="18dp" />
<EditText
android:id="@+id/et_pass"
android:layout_width="match_parent"
android:layout_height="38dp"
android:inputType="textPassword"
android:hint="请输入密码"
android:background="@drawable/bg_edittext"
android:textSize="12dp" />
</LinearLayout>
<CheckBox
android:id="@+id/ckb_remember"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="80dp"
android:button="@drawable/bg_check"
android:checked="true"
android:text="记住我"
android:textSize="23dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="15dp"
android:orientation="horizontal" >
<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="clickView"
android:text="登录"
android:textSize="23dp" />
<Button
android:id="@+id/btn_zhuce"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="clickView"
android:text="注册"
android:textSize="23dp" />
</LinearLayout>
</LinearLayout>
点击编辑框的时候是显示可以键入的,但是当按数字键入的时候它又会跳成没点击的样子。