Android One Note Badge Function

Asked 2 years ago, Updated 2 years ago, 20 views

You can take notes while using other applications, such as the badge function of one note, and I would like to know what function to use to display the badge at all times.

android

2022-09-22 10:44

1 Answers

You mean something like On the Facebook messenger appchethad.

http://www.piwai.info/chatheads-basics/ Here's an example of how to implement it.

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

You can display the view in Window by inserting the corresponding permission. And you have to keep floating, so you have to float it as a service, not an activity.


2022-09-22 10:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.