1

So I have a question.

How is it possible to create a Button like this? In this example this button is always visible and when the user clicks it goes to the home button. It's not important how the code brings the user to the homescreen. Only this visible button!

Thank you!

enter image description here

JAAD
  • 12,349
  • 7
  • 36
  • 57
Luca486
  • 53
  • 1
  • 10

2 Answers2

0

Try this and set its background/src accordingly.

<android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:layout_margin="@dimen/fab_margin"
        android:src="@android:drawable/ic_dialog_email" />
Suhayl SH
  • 1,213
  • 1
  • 11
  • 16
0

You can use this library, it will create the always floating button:

https://github.com/recruit-lifestyle/FloatingView

Artyom Okun
  • 939
  • 1
  • 8
  • 14