LarsWerkman / QuickReturnListView

A implementation of Roman Nurik's and Nick Butcher's Quick Return UI patern for a listview.
Apache License 2.0
698 stars 187 forks source link

Fix list divider height is not considered in calculating scrollY #11

Closed warenix closed 10 years ago

warenix commented 10 years ago

The mItemOffsetY is calculated incorrectly when ListView is set with divider as below:

<com.larswerkman.quickreturnlistview.QuickReturnListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="#abcdef"
        android:dividerHeight="1dp" />

Here's a quick fix for the issue.