rootless-logcat
rootless-logcat copied to clipboard
Add fast-scrolling ability
Replace RecyclerView with FastScrollerRecyclerView to offer fast-scrolling through hundreds of thousands of logs quickly without having to manually scroll all the way through (an impossible feat for over 150,000 logs per minute). The bubble letter is "icing on top" and optional (all of the code in LineAdapter can be ignored and the fast-scrolling functionality will remain). The first thing I could come up with for a useful bubble text was the position of the scrollbar in the list. Maybe the time of the log at the scrollbar position would be more useful. What do you think?
I thought recycler view has a fast scroll option. Can we use that instead?
No. The recycler-view does not have an adjustable handle size and is almost impossible to click because of how small it is. I guarantee almost no one knows that they can even scroll using the handle because it is so hard to use like that, let alone seeing that it is even there. It also doesn't display a bubble. I use the bubble in my work app in a list of speakers to display the first letter of their last name, which is exactly how google does it in their contacts app.
Contacts app is completely different story because there is clear categorization available there.
Whatever you say. Using the scrolling of a FastScrollerRecylerView is much easier and faster than using a regular RecyclerView. Your choice what to do with that information.