timusus / RecyclerView-FastScroll

A simple FastScroller for Android's RecyclerView
Other
1.39k stars 182 forks source link

Respect clipToPadding="false" #104

Open zhanghai opened 5 years ago

zhanghai commented 5 years ago

While respecting paddingTop/Bottom is good, RecyclerView does draw in the padding if clipToPadding="false" is specified (and this is important for use cases like reserving some bottom space for a FAB, so that the last list item can always scroll above it and be fully visible). In this case the library should also draw in the padding. That is, the fix in 472ee5f5d2cb9da70c45a4b2cadcdfacafe2972a should be applied only when View.getClipToPadding() is true.

alexandermarinissen commented 2 years ago

Does this also fix the touch issues? Currently, with clipToPadding="false", the scroller is drawn correctly (with the same padding), but it still treats touch input as though there is no padding (and thus you have to drag your finger further than where the scroller is drawn).