Skip to content
RecyclerView with custom LayoutManager similar to cover flows
Kotlin Java
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead, 7 commits behind ChenLittlePing:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
art
gif
gradle/wrapper
lusciousrv
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

LusciousRecyclerView

RecyclerView with custom LayoutManager

Demo

Screenshot

LusciousRecyclerView Demo

gif

LusciousRecyclerView Demo

Installation

Gradle

(soon)

Manual

  • copy lusciousrv folder to your project

  • add this line in your build.gradle

      compile project(':lusciousrv')
    
  • append this line at your top settings.gradle

      include ':your_app', ':lusciousrv'
    

Usage

  • Define it in the XML
    <me.bluemix.LusciousRecyclerView
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    </me.bluemix.LusciousRecyclerView>
  • Activity initialization, Adapter and RecyclerView Adapter are exactly the same
    mList = findViewById<LusciousRecyclerView>(R.id.lusciousRV)
    //        mList.setFlatFlow(true); // flat scrolling
    mList.adapter = YourAdapter(this)
    mList.setOnItemSelectedListener(object : LusciousLayoutManger.OnSelected {
      override fun onItemSelected(position: Int) {
        // position = current center item
      }
    })



and that's it :)

You can’t perform that action at this time.