1

Apps like Floating Toucher or Link Bubble proves how useful a floating button can be. And no, I'm not talking about FABs as per Material Design guidelines here, I meant a literally 'floating' button that draw over any screen in the system that can be dragged around and clicked.

Take a look at these examples:

enter image description here
(source: boatmob.com)

Now, I tried to Google a way to do this but I'm afraid I'm still at lost here. How can these apps draw over screens outside their own?

I've come across this SO question which more or less asking about a similar question. But to be honest, I wasn't able to gain much information from it. Said question mainly addressed how to intercept a touch for a floating view; Not how to specifically make one.

I really hope that somebody out there could enlighten me on this. Thanks in advance for your time!

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Hadi Satrio
  • 4,272
  • 2
  • 24
  • 45

1 Answers1

2

If you are talking about an activity's view (not Widgets), 'floating' on screen, like Facebook ChatHeads. Then you should create a background service and attach a view with it. Though it is not recommend by Android.

See below links

What APIs in Android is Facebook using to create Chat Heads?

http://www.piwai.info/chatheads-basics/

Community
  • 1
  • 1
Androider
  • 2,884
  • 5
  • 28
  • 47