-2

I don't know how to express the name of this design technique, but please view the images below.

This is like the "chathead" of facebook messenger, when you click on chathead, it will show a layout right at the position of chathead, and then you can interact with that application via textview or button. When you click outside the layout it will collapse to become a chathead.

The blue section is on top of other app (as browser)

r

r

r

(Note: it's not duplicate, I looked everywhere on the internet before decide to ask this question).

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

You can use a dialog themed Activity, which is an Activity but acts like a dialog.

<activity android:name="PopActivity" android:theme="@android:style/Theme.Dialog" />

Refer this post for details about how to create a dialog themed Activity.

Community
  • 1
  • 1
alexhilton
  • 566
  • 7
  • 10
  • not working, Theme.Dialog only work when you are in your application context, but when you are in another app, when you click chathead, nothing will happen, no dialog will display on top of another application – Trần Quốc Hoài new 2015 Jun 17 '16 at 08:08