PopupBubble
PopupBubble copied to clipboard
Add downwards pointing arrow
Hangouts got a popup like bubble displaying "Jump to latest" at the bottom of the RecyclerView (scroll list). It got a down pointing arrow. So to be able to mimic that behaviour it would be nice if you could add a down pointing arrow.
(I can also do a pull req if you want me to).
You can position bubble according to your need. You can set it to bottom from your layout and also you can change the arrow according to your choice look for same in redme, rest of the behaviour remains the same as on click of that button recyclerview will be scrolled to top.
And I don't see any "Jump to latest" button in hangouts. Please provide screenshot.
Yup I've added my own down pointing arrow. But to mimic Hangouts out of the box it might be nice if you included it default in your library.
Okay cool I got that. I will add this behaviour.
In that case I guess this code in onTouchEvent is problematic since it auto scrolls to position 0. I would like to scroll to last position:
if (recyclerView != null)
recyclerView.smoothScrollToPosition(0);
I will need to this also to check the behaviour of recyclerview. I am sure that in the chat section you have reverse layout meaning last element becomes first element and then the above code should not raise any issue but it needs to be tested.