/autoresizinglistview

An Android ListView that can be placed inside a ScrollView

Primary LanguageShell

AutoResizingListView

A ListView that can be placed in a ScrollView and "just work". It's height is set based on the number of items it contains, and it can be used with all the usual ListView accessories such as ListAdapter.

AutoResizingListView was conceived from this StackOverflow thread and is generally considered a bad idea for performance reasons. However, it's probably OK for small lists.

Download

Maven:

<dependency>
    <groupId>com.fourpool.autoresizinglistview</groupId>
    <artifactId>autoresizinglistview</artifactId>
    <version>{insert version here}</version>
</dependency>

Gradle:

compile 'com.fourpool.autoresizinglistview:autoresizinglistview:{insert version here}