Using the RecyclerView with padding and clipToPadding="true", the item views are not drawn correctly when the top of the view's position enters the padding region.
For example, if the RecyclerView has a height of 100 pixels, and it has a bottom padding of 20 pixels, the items are only drawn if the top of the item is between pixels 0-80. Between pixels 80-100 the entire view isn't drawn.
XML code used:
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="8dp" />
Versions:
compileSdkVersion 'android-L'
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 16
targetSdkVersion 'L'
}
Using the hammerhead-lpv79-preview-ac1d8a8e image.
Comment #1
Posted on Jun 28, 2014 by Massive CamelAlso, using: com.android.support:recyclerview-v7:+
Comment #2
Posted on Jul 3, 2014 by Massive KangarooComment deleted
Comment #3
Posted on Jul 8, 2014 by Massive KangarooComment deleted
Comment #4
Posted on Jul 8, 2014 by Massive KangarooThank you for reporting this issue. We have passed this on to the development team and will update this issue with more information as it becomes available.
Comment #5
Posted on Sep 10, 2014 by Helpful BirdI had filed a duplicate of this issue in the main android issue tracker before discovering this project: https://code.google.com/p/android/issues/detail?id=75705
Attaching the sample project I created to reproduce this issue, in case that helps.
- RecyclerViewPadding.zip 175.74KB
Comment #6
Posted on Sep 12, 2014 by Helpful HorseThanks for this. It has also been passed along.
Comment #7
Posted on Nov 3, 2014 by Happy HorseThe development team has fixed the issue you have reported. This change will be available as part of a future public release.
Comment #8
Posted on Nov 9, 2015 by Massive LionThis bug is back in 23.1.0 :/
Status: Fixed
Labels:
Type-Defect
defect-16157287