PullToRefresh-ListView alternatives and similar packages
Based on the "ListView/ScrollView Widget" category.
Alternatively, view PullToRefresh-ListView alternatives based on common mentions on social networks and blogs.
-
android-pulltorefresh
DEPRECATED This project aims to provide a reusable pull to refresh widget for Android. -
Android-SlideExpandableListView
A better ExpandableListView, with animated expandable views for each list item -
Android-HorizontalListView
HorizontalListView is an Android ListView widget which scrolls in a horizontal manner (in contrast with the SDK-provided ListView which scrolls vertically). -
CommonPullToRefresh
Android widget with pull to refresh for all the views,and support loadMore for ListView , RecyclerView, GridView and SwipeRefreshLayout. -
ListBuddies
Android library to achieve in an easy way, the behaviour of the home page in the Expedia app, with a pair of auto-scroll circular parallax ListViews. -
StickyScrollViewItems
A small android library for tagging views inside a ScrollView as "sticky" making them stick to the top of the scroll container until a new sticky view comes and takes it's place -
StikkyHeader
This is a very simple library for Android that allows you to stick an header to a scrollable view and easily apply animation to it -
PagedHeadListView
DISCONTINUED. Android boosted ListView supporting paginated header with a new material page indicator. -
FlabbyListView
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll. -
android-pulltorefresh-and-loadmore
android custom listview,with interaction pattern load more and pull to refresh to load data dinamically -
quickscroll
DISCONTINUED. [Development stopped in 2014. Unfinished and not stable - not recommended to use.] Bringing extended scrolling features to Android's native ListView and ExpandableListView. -
FloatingGroupExpandableListView
An open source Android library that provides a floating group view at the top of the ExpandableListView -
Android-Tiling-ScrollView
A tiling scrollview to display large picture (similar to iOS "CATiledLayer") -
DragNDropList
An easy to use Drag & Drop List for Android. Direct replacement of the android ListView. -
QuickReturn
Android ListView that implements the QuickReturn UI pattern. Written from scratch with focus on performance.
InfluxDB - Purpose built for real-time analytics at any scale.
* 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 PullToRefresh-ListView or a related project?
README
Android 'Pull to Refresh' ListView library
Demo video: http://www.youtube.com/watch?v=VjmdELnm3GI
Project
A generic, customizable, open source Android ListView implementation that has 'Pull to Refresh' functionality. This ListView can be used as a replacement of the normal Android android.widget.ListView class.
/**
* Users of this library should implement OnRefreshListener and call setOnRefreshListener(..)
* to get notified on refresh events. The using class should call onRefreshComplete() when
* refreshing is finished.
*
* The using class can call setRefreshing() to set the state explicitly to refreshing. This
* is useful when you want to show the spinner and 'Refreshing' text when the
* refresh was not triggered by 'Pull to Refresh', for example on start.
*
* @author Erik Wallentinsen <dev+ptr at erikw.eu>
*/
Features
- Drop-in replacement for the android.widget.ListView widget
- Nice graphics (thanks to johannilsson - see credits)
- Animations; bouncing animation and rotation animation (see video)
- Easy to integrate in your Android project (see usage)
- Works for any Android project targeting Android 1.6 (API level 4) and up
- Highly customizable (using Android styles)
Info
Feel free to ask questions, report bugs and request features at dev at erikw dot eu or on the PullToRefresh-ListView github issue page. You can also hit me up on twitter if that's your thing.
Usage
Example project
Check out the example project in this repository for an implementation example. There is also moretechnical documentation available as javadoc in the library project code.
Layout
<!--
The PullToRefresh-ListView replaces a standard ListView widget,
and has all the features android.widget.ListView has.
-->
<eu.erikw.PullToRefreshListView
android:id="@+id/pull_to_refresh_listview"
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
Activity
// Set a listener to be invoked when the list should be refreshed.
PullToRefreshListView listView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview);
listView.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh() {
// Your code to refresh the list contents
// ...
// Make sure you call listView.onRefreshComplete()
// when the loading is done. This can be done from here or any
// other place, like on a broadcast receive from your loading
// service or the onPostExecute of your AsyncTask.
listView.onRefreshComplete();
}
});
Style
To change the looks of the 'PullToRefresh' ListView, you can override the styles that are defined in the library project. Default, the looks are very basic (see screenshot above), with black text on a white background. You can change every aspect to your needs though, like the arrow image, text size, text color and background.
To do so, override the style attributes to your liking, like the following example:
<style name="ptr_text">
<!-- Change the text style and color -->
<item name="android:textStyle">bold|italic</item>
<item name="android:textColor">#cccccc</item>
</style>
The various styles you can override are;
- ptr_headerContainer
- ptr_header
- ptr_arrow
- ptr_spinner
- ptr_text
The default attributes can be found in the library project
Author
I’m a young, enthusiastic hacker from Amsterdam. I study computer science at the VU (Free University) and my work mostly involves Android programming. I do a lot of hacking in my spare time, resulting in many projects I want to share with the world.
- Twitter: @ewallentinsen
- Blog: http://www.erikw.eu
Other projects
This project might not be the best library for you to use in your project, depending on your likes and needs. Consider using these great 'Pull to Refresh' libraries;
- chrisbanes: https://github.com/chrisbanes/Android-PullToRefresh
- johannilsson: https://github.com/johannilsson/android-pulltorefresh
Credits
- johannilsson for the original PullToRefresh project and some graphics: https://github.com/johannilsson/android-pulltorefresh
- chrisbanes for the layout of this README and for inspiring me to opensource this project as well (http://github.com/chrisbanes/Android-PullToRefresh)
License
Copyright (c) 2012 - Erik Wallentinsen
Licensed under the Apache License, Version 2.0
*Note that all licence references and agreements mentioned in the PullToRefresh-ListView README section above
are relevant to that project's source code only.