框架整理系列二十九(左右滑动删除)

引用大神:https://github.com/anzaizai/EasySwipeMenuLayout

EasySwipeMenuLayout

A sliding menu library not just for recyclerview, but all views.

Effect picture

EasySwipeMenuLayout.gif

Recommended

  • Recommended in conjunction with BaseRecyclerViewAdapterHelper

Feature

  • 1、Two-way sliding
  • 2、Support any View
  • 3、By id binding layout, more freedom

How to use

Step 1

  • You need to add jitpack repository infomaition to build.gradle in your project.

      // Top-level build file where you can add configuration options common to all sub-projects/modules.
      buildscript {
          repositories {
              jcenter()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:2.2.0'
      
              // NOTE: Do not place your application dependencies here; they belong
              // in the individual module build.gradle files
          }
      }
      
      allprojects {
          repositories {
              jcenter()
              maven { url "https://jitpack.io" }
      
          }
      }
      
      task clean(type: Delete) {
          delete rootProject.buildDir
      }
    

step 2

  • You need to add library dependencies infomation to build.gradle in your module.

    compile 'com.github.anzaizai:EasySwipeMenuLayout:1.1.2'
    
  • last releases version is 1.1.2 can be use

step 3

  • User EasySwipeMenuLayout as the top-level root layout the needs to be added slide swipe menu the funcation views.

such as

        
                      
                              
                        
                      
                              
                      
                      
                          
                          
                      
                
  • yes,just one step,use it is so simple

你可能感兴趣的:(框架整理系列二十九(左右滑动删除))