Skip to content

kfaraj/support

Repository files navigation

Support

This project is a suite of libraries for Android.

AppCompat

Maven Central

This library is built on top of the AndroidX AppCompat library.

It can be included with the following dependencies:

implementation("com.kfaraj.support:appcompat:4.0.0")

RecyclerView

Maven Central

This library is built on top of the AndroidX RecyclerView library.

It can be included with the following dependencies:

implementation("com.kfaraj.support:recyclerview:3.0.14")

It adds support for empty view, item click and choice mode to the following classes:

val recyclerView = SupportRecyclerView(context)
recyclerView.emptyView = emptyView
recyclerView.onItemClickListener = onItemClickListener
recyclerView.onItemLongClickListener = onItemLongClickListener
recyclerView.choiceMode = choiceMode
recyclerView.multiChoiceModeListener = multiChoiceModeListener
<com.kfaraj.support.widget.SupportRecyclerView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:choiceMode="singleChoice" />

RecyclerView sample

This sample app demonstrates how to use the RecyclerView library.

RecyclerView sample app