如何让一个控件默认获得焦点: 1、 在XML中控件的属性中加上以下这么两项属性 android:focusable="true" android:focusableInTouchMode="true" 2、在代码中用调用requestFocus()方法,这样就可以顺利的将焦点主动的设置到该控件上了