問題表現
在開發中遇到一個偶現的崩潰,日誌堆棧如下:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.edittextdemo, PID: 9528
java.lang.IllegalStateException: focus search returned a view that wasn't able to take focus!
at android.widget.TextView.onKeyUp(TextView.java:7591)
at android.view.KeyEvent.dispatch(KeyEvent.java:2788)
at android.view.View.dispatchKeyEvent(View.java:11780)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1845)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1845)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1845)
at android.view.ViewGroup.dispatchK