有个检索功能,页面上有个EditText输入框,打开页面后,焦点默认在EditText上,这样的话软键盘默认就会显示出来,占据大半个屏幕。
所以要想办法将这个给去掉了,考虑着将焦点赋给页面上的其他组件
<LinearLayout这里直接把焦点给到 LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true">