您好,我要用户个人资料图片选择屏幕。 有两排 第一排有1个大物件,右边2个小物件, 在它们下面有3个小物品,例如
我使用AsymmetricRecyclerViewAdapter做到了这一点,但是当我开始拖动时,所有行都移动了。
val adapter2 = RecyclerViewAdapter(demoUtils.moarItems(5))
recyclerView.setRequestedColumnCount(3)
recyclerView.isDebugging = true
recyclerView.requestedHorizontalSpacing = Utils.dpToPx(this, 3f)
recyclerView.setAdapter(AsymmetricRecyclerViewAdapter<RecyclerViewAdapter.ViewHolder>(this, recyclerView, adapter2))
val callback = ItemMoveCallback(adapter3)
val touchHelper = ItemTouchHelper(callback)
touchHelper.attachToRecyclerView(recyclerView2)
谢谢