How to show a notification in Android at the bottom of the screen

戏子无情 提交于 2020-04-18 06:12:09

问题


How to implement a notification dialog in Android 10 like in the following picture? System: Android 10.0 (Huawei EMUI 10.0)

It's a clock remind window from a clock app. As you can see in the image, the app's main window does not show. Only the dialog can pop up when the phone is in standby. I want to realize the same clock window function.

It seems like a notification because if I turn off the permission of the app's notification, it can not show.

But I don't know how to show a notification at the bottom of screen while not at the notification bar.


In brief, my question is how to implement a notification as in the picture, with these styles:

  1. Show at the bottom of the phone screen;
  2. Higher than ordinary notification bars;
  3. With several action customized buttons

Any help would be greatly appreciated!

来源:https://stackoverflow.com/questions/61040568/how-to-show-a-notification-in-android-at-the-bottom-of-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!