android侧滑删除,模仿qq跟进item显示删除按钮
2018-03-05 14:28
555 查看
今天所写的代码只是为了个人以后查询方便,如果你参考了并且在使用中遇到问题也可以在这里直接回复我
SwipeDelMenuLayout:
效果图:
item布局:
使用方式:
参考来源:https://github.com/mcxtzhang/SwipeDelMenuLayout
SwipeDelMenuLayout:
效果图:
item布局:
<?xml version="1.0" encoding="utf-8"?> <com.mcxtzhang.swipemenulib.SwipeMenuLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="100dp" android:clickable="true" android:paddingBottom="1dp"> <TextView android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/selectableItemBackground" android:gravity="center" android:text="项目中我是任意复杂的原ContentItem布局"/> <!-- 以下都是侧滑菜单的内容依序排列 --> <Button android:id="@+id/btnTop" android:layout_width="60dp" android:layout_height="match_parent" android:background="#d9dee4" android:text="置顶" android:textColor="@android:color/white"/> <Button android:id="@+id/btnUnRead" android:layout_width="120dp" android:layout_height="match_parent" android:background="#ecd50a" android:clickable="true" android:text="标记未读" android:textColor="@android:color/white"/> <Button android:id="@+id/btnDelete" android:layout_width="60dp" android:layout_height="match_parent" android:background="@color/red_ff4a57" android:text="删除" android:textColor="@android:color/white"/> </com.mcxtzhang.swipemenulib.SwipeMenuLayout>
使用方式:
dependencies { compile 'com.github.mcxtzhang:SwipeDelMenuLayout:V1.3.0' }
allprojects { repositories { ... maven { url "https://jitpack.io" } } }
参考来源:https://github.com/mcxtzhang/SwipeDelMenuLayout
相关文章推荐
- Android ListView侧滑item,仿QQ删除效果
- Android使用Item Swipemenulistview实现仿QQ侧滑删除功能
- ListView 仿QQ侧滑显示删除按钮
- 自定义listview,实现Item侧滑显示删除、置顶按钮
- Android 模仿QQ侧滑删除ListView
- Android 模仿QQ侧滑删除ListView功能示例
- ListView的item水平滑动(类QQ的左滑显示删除按钮)
- Android Scroller详解,实现仿QQ列表item侧滑删除功能
- [Android]模仿QQ在listview上滑动出现删除键
- android 仿QQ微信侧滑删除
- Android开发之仿QQ侧滑删除实现(二)
- Android实现RecyclerView侧滑删除和长按拖拽-ItemTouchHelper
- Android listview 侧滑 SwipeListView 详解 实现微信,QQ等滑动删除效果
- Android仿QQ微信侧滑删除效果
- recycleview 使用侧滑删除 android 6.0机型出现item抖动;列表一屏以上,点击后面的item(需要滚动查看了) 然后马上会往上滚动回首个item,滚回第一项
- Android实现RecyclerView侧滑删除和长按拖拽-ItemTouchHelper
- 自定义ListView实现仿QQ消息列表滑动item出现删除按钮
- Android ListView 点击按钮删除对应的 item
- android实现QQ微信侧滑删除效果
- Android实现RecyclerView侧滑删除和长按拖拽-ItemTouchHelper