-1

I've noticed in Google Hangouts that a FloatingActionButton like (with text) widget appears if user scrolls back in message history.

The button says "Jump to latest" with an arrow pointing down to the left of the text. It's similar to a FloatingActionButton.

I tried to embed a AppCompatTextView in a FloatingActionButton using FrameLayout with no luck.

Any ideas?

PS. I've already tried the suggestions in FloatingActionButton with text instead of image but the FAB width is not adjusted accordingly.

Community
  • 1
  • 1
Henrik
  • 1,983
  • 3
  • 28
  • 52

1 Answers1

0

here's a simplistic arch for your needs

there maybe an infinity of solutions though

+ FrameLayout
++++ A normal Button or ImageView if you'd like to use an icon
++++ Positioned like a modern FAB
+
++++ A scrolling Layout holding your conversations

When the button is clicked just scroll to the height of the scrolling view

that's it!

El Don
  • 902
  • 7
  • 14