Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpardogo/FlabbyListView
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.
https://github.com/jpardogo/FlabbyListView
android-library flabbylistview listview
Last synced: 3 months ago
JSON representation
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.
- Host: GitHub
- URL: https://github.com/jpardogo/FlabbyListView
- Owner: jpardogo
- License: apache-2.0
- Created: 2014-03-22T11:47:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T11:49:09.000Z (over 5 years ago)
- Last Synced: 2024-07-31T18:16:30.544Z (6 months ago)
- Topics: android-library, flabbylistview, listview
- Language: Java
- Homepage:
- Size: 5.12 MB
- Stars: 757
- Watchers: 44
- Forks: 143
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- -awesome-android-ui - FlabbyListView - 2.0) | <img src="/art/FlabbyListView.gif" width="49%"> <img src="/art/FlabbyListView2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FlabbyListView - 2.0) | <img src="/art/FlabbyListView.gif" width="49%"> <img src="/art/FlabbyListView2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FlabbyListView - 2.0) | <img src="/art/FlabbyListView.gif" width="49%"> <img src="/art/FlabbyListView2.gif" width="49%"> (Index)
- awesome-android-ui - https://github.com/jpardogo/FlabbyListView
- awesome-android-ui - https://github.com/jpardogo/FlabbyListView
README
FlabbyListView
==============**This library is not maintained anymore and there will be no further releases**
Android library to display a ListView which cells are not rigid but flabby and react to ListView scroll and touch events.
A video example of this library is on this [youtube video][1].
And I also wrote a [blog post][5] about this library in [my blog][6]
Usage
-----1.Place the `FlabbyListView` on your layout:
```xml
```2.Populate it with items which xml layout is wrap by a `FlabbyLayout`:
```xml
```
3.Set the color of each item. It needs to be set on the getView method of your adapter calling `setFlabbyColor` from `FlabbyLayout`:```java
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
if (convertView == null) {
convertView = LayoutInflater.from(mContext).inflate(R.layout.item_list, parent, false);
holder = new ViewHolder(convertView);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}int color = Color.argb(255, mRandomizer.nextInt(256), mRandomizer.nextInt(256), mRandomizer.nextInt(256));
((FlabbyLayout)convertView).setFlabbyColor(color);
holder.text.setText(getItem(position));
return convertView;
}
```
Including in your project
-------------------------You can either add the library to your application as a library project or add the following dependency to your build.gradle:
![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jpardogo.flabbylistview/library/badge.svg)
```groovy
dependencies {
compile 'com.jpardogo.flabbylistview:library:(latest version)'
}
```Notes
-----The iOS version developed by [brocoo][2] is available at [BRFlabbyTable][3]
Developed By
--------------------Javier Pardo de Santayana Gómez -
License
-----------Copyright 2013 Javier Pardo de Santayana Gómez
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.[1]: https://www.youtube.com/watch?v=yN6oO4dBgW8
[2]: https://github.com/brocoo
[3]: https://github.com/brocoo/BRFlabbyTable
[4]: https://play.google.com/store/apps/details?id=com.jpardogo.android.flabbylistview
[5]: http://blog.jpardogo.com/path-and-control-points/
[6]: http://jpardogo.com