Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rno/Android-ScrollBarPanel
Android-ScrollBarPanel allows to attach a View to a scroll indicator like it's done in Path 2.0
https://github.com/rno/Android-ScrollBarPanel
Last synced: 2 months ago
JSON representation
Android-ScrollBarPanel allows to attach a View to a scroll indicator like it's done in Path 2.0
- Host: GitHub
- URL: https://github.com/rno/Android-ScrollBarPanel
- Owner: rno
- Archived: true
- Created: 2012-03-19T00:57:39.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-26T20:28:24.000Z (almost 13 years ago)
- Last Synced: 2023-11-07T15:15:14.052Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 303 KB
- Stars: 547
- Watchers: 59
- Forks: 160
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/rno/Android-ScrollBarPanel
- awesome-android-ui - https://github.com/rno/Android-ScrollBarPanel
README
# Path 2.0 like ScrollBarPanel for Android
![Screenshot](https://github.com/rno/Android-ScrollBarPanel/raw/master/demo_capture.png)
Android-ScrollBarPanel allows to attach a View to a scroll indicator like it's done in Path 2.0.
## Features
* Supports custom View as ScrollBarPanel.
Repository at .
## Usage
### Layout
``` xml
```
### Activity
``` java
// Set your scrollBarPanel
ExtendedListView listView = (ExtendedListView) findViewById(android.R.id.list);// Attach a position changed listener on the listview and play with your scrollBarPanel
// when you need to update its content
mListView.setOnPositionChangedListener(new OnPositionChangedListener() {@Override
public void onPositionChanged(ExtendedListView listView, int firstVisiblePosition, View scrollBarPanel) {
((TextView) scrollBarPanel).setText("Position " + firstVisiblePosition);
}
});```
## Pull Requests
I will gladly accept pull requests for fixes and feature enhancements but please do them in the dev branch. The master branch is for the latest stable code, dev is where I try things out before releasing them as stable. Any pull requests that are against master from now on will be closed asking for you to do another pull against dev.
## Changelog
### 0.1.0
* first commit :-)
### 0.1.1
* added scrollBarPanel attribute to ExtendedListView
### 0.1.2
* Optimisations
### 0.1.3
* More precision regarding scrollBarPanel fade in and fade out (Thanks [Cyril Mottier](https://github.com/cyrilmottier) for the tip!)
### 0.1.4
* Use the position the scrollbar thumb is on instead of the firstVisibleItem position.
### 0.1.5
* Fix NPE (Thanks to [Chris Banes](https://github.com/chrisbanes))
* Added attributes to ExtendedListView to customize in / out animation of scrollBarPanel## Acknowledgments
* [Chris Banes](https://github.com/chrisbanes)
## License
Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)