PopupBubble icon indicating copy to clipboard operation
PopupBubble copied to clipboard

Add downwards pointing arrow

Open odin- opened this issue 7 years ago • 6 comments

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).

odin- avatar Apr 23 '17 19:04 odin-

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.

webianks avatar Apr 24 '17 05:04 webianks

And I don't see any "Jump to latest" button in hangouts. Please provide screenshot.

webianks avatar Apr 24 '17 06:04 webianks

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. c3izajzwmaqptru

odin- avatar Apr 24 '17 06:04 odin-

Okay cool I got that. I will add this behaviour.

webianks avatar Apr 24 '17 09:04 webianks

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);

odin- avatar Apr 24 '17 11:04 odin-

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.

webianks avatar Apr 29 '17 21:04 webianks