Animation in Notification bar Custom View

后端 未结 2 1279
春和景丽
春和景丽 2020-11-28 08:17

As far as I know we can create notifications in Android using Notification Manager + remote Views.

I am Creating a notification for downloading Mp3 files. And I want

2条回答
  •  执念已碎
    2020-11-28 08:47

    In the documentation for creating status bar notifications, it says you can cycle through a bunch of images that are defined in a LevelListDrawable by changing the iconLevel property of the the Notification class:

    iconLevel field

    This value indicates the current level of a LevelListDrawable that is used for the notification icon. You can animate the icon in the status bar by changing this value to correlate with the drawable's defined in a LevelListDrawable. See the LevelListDrawable reference for more information.

提交回复
热议问题