其实就是EditText 焦点问题
下面我们就来解决这个问题,开发中为了快,我当时布局中有多个EditText,就在父布局中添加两行代码搞定如下:
android:focusable="true" android:focusableInTouchMode="true" 直接上代码展示:比如说布局这样写
<LinearLayoutandroid:focusable="true" android:focusableInTouchMode="true"android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="店铺名称 :"
android:textColor="#1d1d1d"
android:textSize="