Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

AndroidGears/SuperListview

 
 

Repository files navigation

SuperListview

Pull requests are answered with all my love and a cookie.

##Description

This library is making listview way more easy to use. No need to embed the listview in a framelayout to add the progressbar or the emptyview. It's all right here.

Features built in:

  • ProgressBar while adapter hasn't been set
  • EmptyView if adapter is empty
  • SwipeRefreshLayout (Google's one)
  • Open to suggestions (and Pull Request ofc) for others :)
  • Infinite scrolling, when you reach the X last item, load more of them.

####[Sample apk][apk]

##Integration

Just add it to you dependencies

For release version:

    compile 'com.quentindommerc.superlistview:library:0.3'

For snapshot version:

    https://oss.sonatype.org/content/repositories/snapshots/
    compile 'com.quentindommerc.superlistview:library:0.8.3-SNAPSHOT'

##Usage

  • Use directly SuperListview:
   <com.quentindommerc.superlistview.SuperListview
            xmlns:superlistview="http://schemas.android.com/apk/res-auto"
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            superlistview:superlv__clipToPadding="false"
            superlistview:superlv__divider="@android:color/transparent"
            superlistview:superlv__dividerHeight="10dp"
            superlistview:superlv__Padding="10dp"
            superlistview:superlv__empty="@layout/emptyview"
            superlistview:superlv__scrollbarStyle="outsideOverlay" >
    </com.quentindommerc.superlistview.SuperListview>
  • Current Attributes supported:
        <attr name="superlv__selector" format="reference"/>
        <attr name="superlv__empty" format="reference"/>
        <attr name="superlv__divider" format="reference"/>
        <attr name="superlv__dividerHeight" format="dimension"/>
        <attr name="superlv__clipToPadding" format="boolean"/>
        <attr name="superlv__Padding" format="dimension"/>
        <attr name="superlv__PaddingTop" format="dimension"/>
        <attr name="superlv__PaddingBottom" format="dimension"/>
        <attr name="superlv__PaddingLeft" format="dimension"/>
        <attr name="superlv__PaddingRight" format="dimension"/>
        <attr name="superlv__scrollbarStyle">
            <flag name="insideOverlay" value="0x0"/>
            <flag name="insideInset" value="0x01000000"/>
            <flag name="outsideOverlay" value="0x02000000"/>
            <flag name="outsideInset" value="0x03000000"/>
        </attr>

For Gridview

    <com.quentindommerc.superlistview.SuperGridview
            xmlns:superlistview="http://schemas.android.com/apk/res-auto"
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            superlistview:superlv__clipToPadding="false"
            superlistview:superlv__divider="@android:color/transparent"
            superlistview:superlv__dividerHeight="10dp"
            superlistview:superlv__Padding="10dp"
            superlistview:superlv__empty="@layout/emptyview"
            superlistview:supergv__columns="2"
            superlistview:supergv__verticalSpacing="10dp"
            superlistview:supergv__horizontalSpacing="10dp"
            superlistview:superlv__scrollbarStyle="outsideOverlay" >
    </com.quentindommerc.superlistview.SuperGridview>
  • Current Attributes supported:
        <attr name="superlv__selector" format="reference"/>
        <attr name="superlv__empty" format="reference"/>
        <attr name="superlv__divider" format="reference"/>
        <attr name="superlv__dividerHeight" format="dimension"/>
        <attr name="superlv__clipToPadding" format="boolean"/>
        <attr name="superlv__Padding" format="dimension"/>
        <attr name="superlv__PaddingTop" format="dimension"/>
        <attr name="superlv__PaddingBottom" format="dimension"/>
        <attr name="superlv__PaddingLeft" format="dimension"/>
        <attr name="superlv__PaddingRight" format="dimension"/>
        <attr name="superlv__scrollbarStyle">
            <flag name="insideOverlay" value="0x0"/>
            <flag name="insideInset" value="0x01000000"/>
            <flag name="outsideOverlay" value="0x02000000"/>
            <flag name="outsideInset" value="0x03000000"/>
        </attr>
        <attr name="supergv__columns" format="integer">
        <attr name="supergv__horizontalSpacing" format="dimension">
        <attr name="supergv__verticalSpacing" format="dimension">

####[Sample java][sample java]

Contributors

Arasthel Github

Gabriele Mariotti Github, Google+

##License

Copyright (c) 2014 Quentin Dommerc

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 at

   http://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.
Come on, don't tell me you read that.

Analytics [sample java]:https://github.com/dommerq/SuperListview/blob/dev/Sample/src/main/java/com/quentindommerc/superlistview/sample/ListSample.java [apk]:https://github.com/dommerq/SuperListview/blob/dev/sample.apk

About

Way more than just a listview

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 82.6%
  • Groovy 17.4%