2020
10-08
10-08
Android之RecycleView实现指定范围的拖动效果
1问题在RecycleView里面实现指定位置的拖动效果,(这里是实现线性布局的,不是网格布局的)@OverridepublicbooleanonMove(RecyclerViewrecyclerView,RecyclerView.ViewHolderviewHolder,RecyclerView.ViewHoldertarget){Log.i(TAG,"onMoveviewHolder.getAdapterPosition()is:"+viewHolder.getAdapterPosition());intitemViewType=viewHolder.getAdapterPosition();Log.i(TAG,"onMove-----------...
继续阅读 >