在项目中使用了CoordinatorLayout布局做一个上滑隐藏的效果
activity中布局 CoordinatorLayout + AppBarLayout + Viewpager
fragment中EditText + SmartRefreshLayout + RecyclerView
问题在于,左右滑动后,布局整体向上滑动(也就是CoordinatorLayout 自动折叠了)
在EditText父控制上加入就好了 但是不知道具体原因
android:focusable="true"
android:focusableInTouchMode="true"
网友评论