J'utilise le lecteur de musique original dans Nougat Android, tandis que la musique joue dans l'écran de verrouillage Apparaît une animation dans le Buttom comme cette capture d'écran.Android Nougat Media Player comment mettre de la musique Animation dans l'écran de verrouillage?
Mais quand j'utiliser mon propre lecteur App médias dans le même Android Nougat et l'appareil même dans l'écran de verrouillage DonT apparaît que l'animation.
La question est: Comment puis-je ajouter que l'animation dans mon Media Player App? ce n'est pas une image gif car l'animation évolue au rythme de la musique.
** Ceci est ma méthode de notification ** si quelque chose me manque ou si je dois ajouter autre chose.
ublic void Custom_Notificacion(){
Notification notification = new Notification(R.drawable.logobubble, null, System.currentTimeMillis());
notificationView = new RemoteViews(getPackageName(), R.layout.layout_notificacion_personalizada);
notificationView.setImageViewBitmap(R.id.id_FotoAlbumNotif,FotoNotif);
notificationView.setTextViewText(R.id.id_NombreMp3Notif,NommbreArtista);
notificationView.setTextViewText(R.id.id_NombreCancionNotif,NombreCancion);
notification.contentView = notificationView;
notification.flags |= Notification.FLAG_NO_CLEAR;
startForeground(constantes.NOTIFICATION_ID.FOREGROUND_SERVICE,notification);
}
Je vais essayer, merci pour votre réponse, si cela fonctionne, je vais revenir. –