0

i want notify user this service is running in status bar with an animation but can't show animation or colors

i saw these questions but don't sloved my problem:

How to animate the progress notification icon

Animation in Notification bar Custom View

Android - show animated status bar icon

    notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

    Notification.Builder builder = new Notification.Builder(this);
    builder.setAutoCancel(false);
    builder.setContentTitle(getText(R.string.app_name_persian));
//    builder.setContentText(getText(R.string.app_is_running));
    builder.setSmallIcon(R.drawable.notification_animation);
    builder.setOngoing(true);
    builder.setWhen(System.currentTimeMillis());

    notificationManager.notify(13, builder.build());

my animation drawable: enter image description here

what i see: enter image description here enter image description here

Shahriyar Aghajani
  • 431
  • 1
  • 6
  • 22

0 Answers0