Android recyclerview sideslip menu, slide delete, long press and drag, pull-down refresh, pull-up load

The sideslip effect in the library introduced in this paper draws lessons from swipemenu, modifies and bug fixes the source code of sipwmenu, and then develops swipecyclerview.

Swiperecyclerview will perfectly solve these problems:

Reference method

Android studio uses gradle to build and add dependencies (recommended)

Or Maven:

The recyclerview version I referenced when developing swiperecyclerview is as follows:

design sketch

Gif has some distortion, and the web page loading speed is slow. You can [download APK of demo] [3] to see the effect.

Sideslip menu

Nested with viewpager, drop-down refresh, auto load more

Long press drag to use with sideslip menu

Direct sliding deletion long sorting by dragging items

Vertical menu realizes its own menu with custom layout

Introduction to use

The key implementations are listed here. For details, please refer to the demo or add the top communication group to discuss. For more tutorials, please visit my blog.

Enable swipereyclerview's long press item drag function and sideslip delete function

Add item sideslip menu

The sideslip menu supports the automatic opening of the menu of an item, and you can specify whether it is left or right:

Step 1: reference the custom view: swipemenureyclerview:

Step 2: Set Menu Creator and click listen:

Step 3: the menu creator creates a menu:

Please refer to demo for more usage.

Step 4: inherit the swipemenuadapter and use it as a normal adapter:

That's it. For more details, please refer to the demo and source code. The source code demo downloads the portal.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>