This is a simple example of how to make a view that sits on top of all other apps and it is independent of any activity. In order to create your own overlay, just create a service that extends the AbstractOverlayService and override the required methods. It's *that* easy! :P
EXTRAS
In the sample project, there is an activity that will make the overlay appear when the app is in the background, or hide it when the app is in the foreground. This project works only as a concept and idea on what you can do with overlays and how to get started. If you do use some of the code used here, give credit if you feel like it, or mention the repo somewhere in your project.
Have a look at the code here: https://github.com/alexstyl/FloatingViewService
免費玩FloatingViewService Demo APP玩免費
免費玩FloatingViewService Demo App
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.0 App下載 | 免費 | 1970-01-01 | 2015-04-23 |