把editText的background 改成
<?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/shurukuangfocus" /> <item android:state_focused="false" android:state_pressed="false" android:drawable="@drawable/shurukuang" /> <item android:state_focused="true" android:drawable="@drawable/shurukuangfocus" /> </selector>