Open vit001 opened 9 years ago
I'll try to merge this soon. It would be better if Android Studio didn't change the project structure, though. Also, do you have some suggestions for how to modify the README to explain how to use this thing?
If it's too much hassle and you are interested in going ahead with the merge, I can try to go back and fix the project structure. I'll update the README.
OK - please see the new pull request. It has correct structure and an addition to README.
I created a new class com.nolanlawson.supersaiyan.widget.SuperSaiyanRecyclerView.java. I created a new demo examples/countries-recyclerview.
I added the following enhancements to SuperSaiyanRecyclerView.java compared to SuperSaiyanScrollView.java: 1) scrollbar fades in, in addition to fading out. 2) when dragging scrollbar, scrolling is smooth (does not snap to each item, but instead items can scroll in/out of view smoothly). 3) Scrollbar doesn't jump position when going from fast scroll to normal scroll.
Sorry - Android Studio somehow modified the project structure - you may want to extract only the relevant files and merge yourself. The relevant files are: 1) SuperSaiyanRecyclerView.java, 2) examples\countries-recyclerview\src\main\java\com\example\example1\MainActivity.java, 3) examples\countries-recyclerview\src\main\res\layout\activity_main.xml. In addition, the following gradle dependency is needed for RecyclerView: compile "com.android.support:recyclerview-v7:21+"