All Projects → tgirard12 → KRecyclerDsl

tgirard12 / KRecyclerDsl

Licence: Apache-2.0 license
Kotlin Dsl for Android RecyclerView

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to KRecyclerDsl

Modular2Recycler
Modular²Recycler is a RecyclerView.Adapter that is modular squared.
Stars: ✭ 72 (+414.29%)
Mutual labels:  recyclerview
SwipeAndDragRecyclerView
通过 ItemTouchHelper.Callback 实现 RecyclerView Item 的拖拽和侧滑删除
Stars: ✭ 39 (+178.57%)
Mutual labels:  recyclerview
Recycling
A Library for make an easy and faster RecyclerView without adapter
Stars: ✭ 57 (+307.14%)
Mutual labels:  recyclerview
SmartStickyHeader
A Custom Header View With Multiple Items to make selection from categories
Stars: ✭ 36 (+157.14%)
Mutual labels:  recyclerview
swipeablerecyclerview
SwipeableRecyclerView provides a wrapper class SwipeItemTouchHelperCallback which can be used to add Dragging capability to your RecyclerView items. You can make use of DataBinding to bind it via XML.
Stars: ✭ 16 (+14.29%)
Mutual labels:  recyclerview
RecyclerViewExtensionsDemo
RecyclerView列表优化方案
Stars: ✭ 45 (+221.43%)
Mutual labels:  recyclerview
HoveringCallback
Drag & drop item decorator for RecyclerView with support for highlighting hovered items.
Stars: ✭ 15 (+7.14%)
Mutual labels:  recyclerview
PrimeAdapter
PrimeAdapter makes working with RecyclerView easier.
Stars: ✭ 54 (+285.71%)
Mutual labels:  recyclerview
TabSync
A lightweight synchronizer between Android's Tabs and Lists. Available on the View system and Jetpack Compose.
Stars: ✭ 98 (+600%)
Mutual labels:  recyclerview
ZigzagRecyclerView
A library that gives you a slant on the traditional Grid Recycler View ♻️
Stars: ✭ 27 (+92.86%)
Mutual labels:  recyclerview
recyclerview-expandable
RecyclerView implementation of traex's ExpandableLayout
Stars: ✭ 70 (+400%)
Mutual labels:  recyclerview
ShimmerRecyclerView
A custom Shimmer RecyclerView which adopt to list / grid transition automatically and also supports multiple view types while shimmering.
Stars: ✭ 184 (+1214.29%)
Mutual labels:  recyclerview
ParkingDemo
Taipei City Parking Lot Information Query System Demo
Stars: ✭ 18 (+28.57%)
Mutual labels:  recyclerview
ui
android examples for ui
Stars: ✭ 28 (+100%)
Mutual labels:  recyclerview
Android-HeaderAndFooterRecyclerView
Let RecyclerView support add HeaderView and FooterView.
Stars: ✭ 36 (+157.14%)
Mutual labels:  recyclerview
android-thinkmap-treeview
Tree View; Mind map; Think map; tree map; custom view; 自定义;关系图;树状图;思维导图;组织机构图;层次图
Stars: ✭ 314 (+2142.86%)
Mutual labels:  recyclerview
RollingLayoutManager
vrgsoft.net
Stars: ✭ 57 (+307.14%)
Mutual labels:  recyclerview
My Android Garage
A quick reference guide for Android development.
Stars: ✭ 66 (+371.43%)
Mutual labels:  recyclerview
blueprint
Blueprint is a compact framework for constructing mvp architecture within a scrollable, multi-view-type list UI. It uses the Android RecyclerView library, and currently only supports LinearLayouts
Stars: ✭ 19 (+35.71%)
Mutual labels:  recyclerview
Pursuit-Core-Android
Pursuit Core Android
Stars: ✭ 45 (+221.43%)
Mutual labels:  recyclerview

KRecyclerDsl

download

Kotlin Dsl for Android RecyclerView

Exemple

recyclerView.adapter = dataClassAdapter<MyView, MyDataClass>(R.layout.my_view, myItems) {
    onBindViewHolder { view, dataClass ->
        view.name.text = dataClass.name
        view.description.text = dataClass.description
    }
    onItemClickListener { view, dataClass ->
        startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(dataClass.html_url)))
    }
}

Extensions functions

This library provide some useful (or not) extensions functions :

// Call the function when scroll down on the last visible item
recyclerView.addInfiniteScrollListener { search() }

// Add separation between each line.
recyclerView.addDividerItemDecorationVertical()

// Add separation between each column.
recyclerView.addDividerItemDecorationHorizontal()

Dependency

KRecyclerDsl has no dependency, you must add your RecyclerView library version.
This library generate a JAR, not an AAR, so you can use it with any compile version option.

compile "com.tgirard12.krecyclerdsl:krecyclerdsl:$LATEST_VERSION"

// Required
compile "com.android.support:recyclerview-v7:$your_version"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].