GloriousRecyclerView
A full function RecyclerView integration of Header, Footer,EmptyView,Pull To Refresh and Up Swipe To Load More
Install / Use
/learn @titanchen2000/GloriousRecyclerViewREADME
GloriousRecyclerView
A full function RecyclerView integration of Header, Footer,EmptyView and Pull Up To Load More
Usage
Step 1. Add the dependency
dependencies {
compile 'com.xpc:gloriousrecyclerview:0.2.6@aar'
compile 'com.android.support:recyclerview-v7:24.2.1'
}
Step 2. Add the in xml
<com.xpc.gloriousrecyclerview.GloriousRecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
or customize loadMoreView like this
<com.xpc.gloriousrecyclerview.GloriousRecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:hideNoMoreData="true"
app:loadAllCompleteText="Load Complete"
app:loadMoreBackground="#ccc"
app:loadMoreFailedText="@string/loading_more_failed"
app:loadMoreIndeterminateDrawable="@drawable/loading_icon_drawable"
app:loadMoreTextColor="#0080ff"
app:loadMoreTextSize="14sp"
app:loadingMoreText="Loading More, Pls wait"/>
hideNoMoreData: Hide the LoadMoreView When no more data, default istrueloadMoreIndeterminateDrawable: The ProgressBar Indeterminate Drawable of LoadMoreView
Step 3. The code in Activity, see Demo
Feature
- addHeaderView
- addFooterView
- setEmptyView
- setLoadMoreListener
- removeHeaderView
- removeFooterView
public class GloriousRecyclerView extends RecyclerView {
public void addHeaderView(android.view.View view){
//Add the GloriousRecyclerView footerView
}
public void addFooterView(android.view.View view){
//Add the GloriousRecyclerView footerView
}
public void removeHeaderView(){
//Remove the GloriousRecyclerView footerView
}
public void removeFooterView(){
//Remove the GloriousRecyclerView footerView
}
public void setEmptyView(android.view.View view){
//Add the GloriousRecyclerView emptyView
}
public void setLoadMoreListener(GloriousRecyclerView.AutoLoadMoreListener loadMoreListener){
//Listen the GloriousRecyclerView scrolled to the end and will trigger loadMoreListener.onLoadMore()
//Called this also means that loadMore enabled, the list bottom will add a loadMoreView
}
public void notifyLoadMoreSuccessful(boolean hasMore){
// If you have ever called setLoadMoreListener, when load data successful, call this to to notify the loadMoreView change UI state
//boolean hasMore: Whether has more data to be loaded
}
public void notifyLoadMoreFailed(){
//If you have ever called setLoadMoreListener, when load data failed, call this to to notify the loadMoreView change UI state
}
}
Extra
Pull To Refresh
see Demo
Effect Picture



Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
