HorizontalListView

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

License

License

GroupId

GroupId

it.sephiroth.android.library.horizontallistview
ArtifactId

ArtifactId

hlistview
Last Version

Last Version

1.3.1
Release Date

Release Date

Type

Type

aar
Description

Description

HorizontalListView
Horizontal ListView for Android. Based on the official ListView google code.
Project URL

Project URL

https://github.com/sephiroth74/HorizontalVariableListView
Source Code Management

Source Code Management

https://github.com/sephiroth74/HorizontalVariableListView

Download hlistview

How to add to project

<!-- https://jarcasting.com/artifacts/it.sephiroth.android.library.horizontallistview/hlistview/ -->
<dependency>
    <groupId>it.sephiroth.android.library.horizontallistview</groupId>
    <artifactId>hlistview</artifactId>
    <version>1.3.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/it.sephiroth.android.library.horizontallistview/hlistview/
implementation 'it.sephiroth.android.library.horizontallistview:hlistview:1.3.1'
// https://jarcasting.com/artifacts/it.sephiroth.android.library.horizontallistview/hlistview/
implementation ("it.sephiroth.android.library.horizontallistview:hlistview:1.3.1")
'it.sephiroth.android.library.horizontallistview:hlistview:aar:1.3.1'
<dependency org="it.sephiroth.android.library.horizontallistview" name="hlistview" rev="1.3.1">
  <artifact name="hlistview" type="aar" />
</dependency>
@Grapes(
@Grab(group='it.sephiroth.android.library.horizontallistview', module='hlistview', version='1.3.1')
)
libraryDependencies += "it.sephiroth.android.library.horizontallistview" % "hlistview" % "1.3.1"
[it.sephiroth.android.library.horizontallistview/hlistview "1.3.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » support-v4 jar 21.0.3

Project Modules

There are no modules declared in this project.

Deprecated

This widget is now deprecated and it won't be updated anymore. Use RecyclerView instead

Horizontal Variable ListView

Horizontal ListView for Android. Based on the official ListView google code. The library includes also an ExpandableHListView, also based on the official ExpandableListView.
See the demo project for sample implementations

Usage (gradle)

Add this line to your dependency group:

compile 'it.sephiroth.android.library.horizontallistview:hlistview:1.2.2'

Features

It supports almost all the features of the ListView widget. There are minor differences in the attributes supported like "hlv_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="hlv_dividerWidth" format="dimension" />
        <attr name="hlv_headerDividersEnabled" format="boolean" />
        <attr name="hlv_footerDividersEnabled" format="boolean" />
        <attr name="hlv_overScrollHeader" format="reference|color" />
        <attr name="hlv_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="hlv_measureWithChild" format="integer" />
    </declare-styleable>
    

    <declare-styleable name="AbsHListView">
        <attr name="android:listSelector" />
        <attr name="android:smoothScrollbar" />
        <attr name="android:drawSelectorOnTop" />
        <attr name="android:cacheColorHint" />
        <attr name="android:scrollingCache" />
        <attr name="android:choiceMode" />
        
        <attr name="hlv_stackFromRight" format="boolean" />
        <attr name="hlv_transcriptMode">
            <enum name="disabled" value="0"/>
            <enum name="normal" value="1" />
            <enum name="alwaysScroll" value="2" />
        </attr>
        
    </declare-styleable>  

ChangeLog

  • 1.2.0 Added the ExpandableHListView

API Requirements

The minimum supported Android version is android 2.3 (API Level 9)

License

This software is distributed under Apache License 2.0: http://www.apache.org/licenses/LICENSE-2.0


Author Alessandro Crugnola

Versions

Version
1.3.1
1.3.0
1.2.2