私はAndroidのNougatで元の音楽プレーヤーを使用しています。音楽はロック画面で再生されていますが、このスクリーンショットのようにButtomでアニメーションが表示されます。Android Nougat Media Playerのロックアニメーションはどのようにロック画面に表示されますか?
しかし、私はロック画面に同じAndroidのヌガーと同じデバイスで自分のApp Media Playerを使用しているアニメーションを表示さいけません。
質問は:どのように私は私のメディアプレーヤーアプリケーションでそのアニメーションを追加することができますか?アニメーションは音楽のリズムに移動するため、gif画像ではありません。
**これは私の通知方法です** **もし私が何かを見逃している、または何かを追加しなければならない場合。
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);
}
私はあなたのanwserのおかげでこれを試してみます。 –