Description
android RecyclerView support Header Footer and Empty list
android RecyclerView support Header Footer and Empty list alternatives and similar packages
Based on the "Recyclerview Widget" category.
Alternatively, view android RecyclerView support Header Footer and Empty list alternatives based on common mentions on social networks and blogs.
-
recyclerview-animators
An Android Animation library which easily add itemanimator to RecyclerView items. -
UltimateRecyclerView
A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features. -
XRecyclerView
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView -
twoway-view
RecyclerView made simple -
android-advancedrecyclerview
9.3 0.0 L5 android RecyclerView support Header Footer and Empty list VS android-advancedrecyclerviewRecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting) -
sticky-headers-recyclerview
[UNMAINTAINED] Sticky Headers decorator for Android's RecyclerView -
SuperRecyclerView
Pumped up RecyclerView -
RecyclerView-FlexibleDivider
8.3 0.0 L5 android RecyclerView support Header Footer and Empty list VS RecyclerView-FlexibleDividerAndroid library providing simple way to control divider items (ItemDecoration) of RecyclerView -
ScrollablePanel
A flexible view for providing a limited rect window into a large data set,just like a two-dimensional RecyclerView. It different from RecyclerView is that it's two-dimensional(just like a Panel) and it pin the itemView of first row and first column in their original location. -
RecyclerViewHeader
Super fast and easy way to create header for Android RecyclerView -
RecyclerViewEnhanced
Android Library to provide swipe, click and other functionality to RecyclerView -
header-decor
A couple of sticky header decorations for android's recycler view. -
SectionedRecyclerView
An adapter to create Android RecyclerViews with sections, providing headers and footers. -
LastAdapter
Don't write a RecyclerView adapter again. Not even a ViewHolder! -
Dividers
Dividers is a simple Android library to create easy separators for your RecyclerViews -
RecyclerView-MultipleViewTypesAdapter
5.1 0.0 L5 android RecyclerView support Header Footer and Empty list VS RecyclerView-MultipleViewTypesAdapterAndroid library defining adapter classes of RecyclerView to manage multiple view types -
RecyclerViewSwipeDismiss
A very easy-to-use and non-intrusive implement of Swipe to dismiss for RecyclerView. -
RecyclerItemDecoration
ItemDecoration for RecyclerView using LinearLayoutManager for Android -
DynamicRecyclerView
Set of plugable extenstions for Android RecyclerView -
PowerfulRecyclerViewAdapter
A Common RecyclerView.Adapter implementation which supports all kind of items and has useful data operating APIs such as remove,add,etc. -
NoPaginate
Android pagination library (updated 01.05.2018) -
recyclerview-binder
Android library for RecyclerView to manage order of items and multiple view types. -
CircularLayoutManager
Custom Layout Manager for Recycler View -
KidAdapter
kotlin dsl for kids to simplify RecyclerView.Adapter logic -
InfiniteRecyclerView
A RecyclerView Adapter which allows you to have an Infinite scrolling list in your apps -
VsRecyclerView
The library that removes all boilerplate code allowing you to display lists with few lines of code. -
RollerTrack
A navigational roller track companion for RecyclerView lists -
Infinite scroll functionality for recycler views
Infinite scroll functionality for recycler views
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of android RecyclerView support Header Footer and Empty list or a related project?
Popular Comparisons
-
android RecyclerView support Header Footer and Empty listvsEpoxy
-
android RecyclerView support Header Footer and Empty listvssticky-headers-recyclerview
-
android RecyclerView support Header Footer and Empty listvsDividers
-
android RecyclerView support Header Footer and Empty listvsRecyclerItemDecoration
-
android RecyclerView support Header Footer and Empty listvsInfinite scroll functionality for recycler views
README
Android RecyclerView support Header Footer and Empty list
simple and useful
Install
Add to the dependency
dependencies {
implementation 'com.android.support:recyclerview-v7:27.1.1' //required
implementation 'com.miladheydari:headerfooteremptyrecyclerview:1.2.0'
}
usage
first add HFERecyclerView and empty view to your layout
<com.miladheydari.hferecyclerview.HFERecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
layout="@layout/empty"
android:visibility="gone" />
your adapter must extend HFEAdapter
T is type of your data list and must use getItem(position) for geting item of list data
class Adapter(_data: List<String>?) : HFEAdapter<String>(_data) {
override fun getItemView(inflater: LayoutInflater, parent: ViewGroup): ViewHolder {
return ViewHolder(inflater.inflate(R.layout.row, parent,false))
}
override fun onBindViewHolder(holder: android.support.v7.widget.RecyclerView.ViewHolder, position: Int) {
when (holder) {
is ViewHolder -> {
holder.tv.text = getItem(position) //required
}
else -> {
}
}
}
class ViewHolder(view: View) : RecyclerView.ViewHolder(view) {
var tv: TextView = view.findViewById(R.id.tv)
}
}
initial HFERecyclerView and add header footer and attach emptyView
class MainActivity : AppCompatActivity() {
private lateinit var hfeRecyclerView: HFERecyclerView
private val listString: MutableList<String> = ArrayList()
private lateinit var adapter: Adapter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
hfeRecyclerView = findViewById(R.id.recycler)
val mLayoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
hfeRecyclerView.layoutManager = mLayoutManager
hfeRecyclerView.itemAnimator = DefaultItemAnimator()
hfeRecyclerView.emptyView = findViewById(R.id.empty_view)
for (i in 1..20)
listString.add("hii $i")
adapter = Adapter(listString)
hfeRecyclerView.adapter = adapter
hfeRecyclerView.setFooter(LayoutInflater.from(this).inflate(R.layout.footer,hfeRecyclerView, false))
hfeRecyclerView.setHeader(LayoutInflater.from(this).inflate(R.layout.header,hfeRecyclerView, false))
}
}
hfeRecyclerView.setFooter(view)
set footer for HFERecyclerView and remove footer with pass null
hfeRecyclerView.setHeader(view)
set header for HFERecyclerView and remove header with pass null
hfeRecyclerView.emtyView = view
set emptyView to recycler view **optional