Skip to content

Malachiasz/HorizontalVariableListView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Horizontal Variable ListView

Horizontal ListView for Android. Based on the official ListView google code.

Features

It supports almost all the features of the ListView widget. There are minor differences in the attributes supported like "dividerWidth" instead of the default "dividerHeight".

This is the styleable used for the HListView class:

    <declare-styleable name="HListView">
        <attr name="android:entries" />
        <attr name="android:divider" />
        <attr name="dividerWidth" format="dimension" />
        <attr name="headerDividersEnabled" format="boolean" />
        <attr name="footerDividersEnabled" format="boolean" />
        <attr name="overScrollHeader" format="reference|color" />
        <attr name="overScrollFooter" format="reference|color" />
        
        <!-- 
        When "wrap_content" is used as value of the layout_height property.
        Pass the position, inside the adapter, of the view being used to measure the view
        or '-1' to use the default behavior ( default is -1 )
        -->
        <attr name="measureWithChild" format="integer" />        
    </declare-styleable>

API Requirements

The minimum supported Android version is android 2.3

Example

See the Demo MainActivity for a working sample.

License

This software is distributed under the MIT License: http://opensource.org/licenses/MIT


Author Alessandro Crugnola

About

Horizontal list view for Android which allows variable items widths

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%