mihirjoshi
mihirjoshi

Reputation: 12201

How to make partially visible app that works over another app

I have seen apps like Gamekiller and Scramble Cheat that shows partially over another app like a shadow and the touch events over them actually works over the background app.

enter image description here enter image description here

Upvotes: 0

Views: 167

Answers (2)

Enyby
Enyby

Reputation: 4420

You can add own view to screen (WindowManager.addView). But in need permission SYSTEM_ALERT_WINDOW.

Or, better, create custom dialog with custom LayoutParams. Must important - set type to TYPE_PHONE or TYPE_SYSTEM_ALERT.

It display over other app.

Upvotes: 0

JCodes13
JCodes13

Reputation: 486

NO don't use transparent background use a service like this example it explains it well and could take you in the right direction. http://www.piwai.info/chatheads-basics/

Or you could use standout. https://github.com/pingpongboss/StandOut

I haven't tried standout yet but it looks good.

Upvotes: 1

Related Questions