Skip to content

bluemix/LusciousRecyclerView

 
 

Repository files navigation

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 :)

About

RecyclerView with custom LayoutManager similar to cover flows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 93.6%
  • Java 6.4%