ItemTouchHelperDemo
ItemTouchHelperDemo copied to clipboard
动画执行有问题
布局文件如下所示时,我的频道和其他频道的item移动动画会出现问题,动画不正常
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<android.support.v7.widget.RecyclerView
android:id="@+id/recy"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"/>
</LinearLayout>
是哦,动画执行不正常!
像这种下面有好几个大分类的,当选择分类内容时添加上去,当要删除时又要回到原来的分类中去需要怎样实现呢?
楼上的做出来了吗??求
动画执行问题recycler包裹一下frameLayout就ok
@50kg 你也有这种需求?
@Achenglove 有啊,做出来了吗?我连多布局分组显示还没弄好,能分享一下吗?qq996413428
@50kg 现在不是很有空,赶项目,改天咯。思路:通过 getItemViewType()方法根据不同位置显示不同布局,然后选上与取消就是集合或者数组的变换了。
@Achenglove 能分享一下不 同求啊 @50kg qq458167371