9

I want to show message to user. But I want to do that like MusiXMatch. I don't know what is component's name.

MusixMatch shows lyrics over the other apps till user close the app or click hide button. I can explain what I want with 2 Images.

When app starts, this mini icon will show always. If user clicks on it icon will expanded to Image 2:

The app shows user to music.

I hope that I can explain what I want.

Metehan Toksoy
  • 1,885
  • 3
  • 22
  • 39

3 Answers3

4

use floating view https://github.com/marshallino16/FloatingView

or standout window https://github.com/pingpongboss/StandOut

MobileMon
  • 8,341
  • 5
  • 56
  • 75
2

You are talking about system window overlay. A post for that is available here

Community
  • 1
  • 1
Bojan Kseneman
  • 15,488
  • 2
  • 54
  • 59
2

You need to declare the SYSTEM_ALERT_WINDOW permission in your AndroidManifest:

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

You can find example code here.

tony
  • 216
  • 1
  • 7