在EditText前面放置一个看不到的LinearLayout,让它率先获取焦点,代码如下:
<LinearLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0px" android:layout_height="0px"/>
在EditText前面放置一个看不到的LinearLayout,让它率先获取焦点,代码如下:
<LinearLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0px" android:layout_height="0px"/>