jenzz / android-multistatelistview Goto Github PK
View Code? Open in Web Editor NEWA simple Android ListView that lets you define three states: Loading, Empty & Error
License: MIT License
A simple Android ListView that lets you define three states: Loading, Empty & Error
License: MIT License
Thanks for a great lib. Is it possible for you to add a refresh button to the empty and error layouts that can be called easily from the specific activity?
What about updating empty / error states to Material Design styling that also Google's apps use for quite a long time?
Hi,
When I implement your library for showing loading,error states in my listview and I combine it along with swipe to refresh functionality. The listview data is shown properly when the data is available. But when the listview is empty or loading, it simply hides the layout behind swipe to refresh layout. Do you have any suggestion on this one ? Thanks in advance.
Here's a piece of my code :
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@android:color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.yalantis.phoenix.PullToRefreshView
android:id="@+id/pull_to_refresh"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.jensdriller.libs.multistatelistview.MultiStateListView
android:id="@+id/shoppingList"
android:layout_width="match_parent"
android:layout_height="match_parent"
custom:emptyView="@layout/list_empty"
custom:errorView="@layout/list_error"
custom:loadingView="@layout/list_loading"
custom:layout_constraintBottom_toBottomOf="@+id/constraintLayout3"
custom:layout_constraintLeft_toLeftOf="@+id/constraintLayout3"
custom:layout_constraintRight_toRightOf="@+id/constraintLayout3"
custom:layout_constraintTop_toTopOf="@+id/constraintLayout3"
tools:layout_constraintBottom_creator="1"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintRight_creator="1"
tools:layout_constraintTop_creator="1" />
</com.yalantis.phoenix.PullToRefreshView>
</FrameLayout>
The above is my layout file.
What license is this released under? I want to use your library but can't unless there is a clear license.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.