Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Abbildung 1 Eine schrittweise Benachrichtigung oben im Schieberegler.
In Android 16 wird eine neue Benachrichtigungsvorlage eingeführt, mit der Nutzer den gesamten Ablauf von von ihnen initiierten Abläufen verfolgen können. Diese Benachrichtigungen werden auf Systemoberflächen besser sichtbar sein und in der Benachrichtigungsleiste an erster Stelle angezeigt.
Verwenden Sie Notification.ProgressStyle, um fortschrittsorientierte Benachrichtigungen zu gestalten.
Zu den wichtigsten Anwendungsfällen gehören Fahrdienste, Lieferservices und Navigation. In dieser Klasse können Sie mithilfe von Punkten und Segmenten Zustände und Meilensteine in einer User Journey angeben.
Relevante Kurse
Die folgenden Klassen enthalten die verschiedenen APIs, mit denen du eine ProgressStyle-Benachrichtigung erstellen kannst:
Die folgenden Bilder zeigen die verschiedenen Teile von ProgressStyle-Benachrichtigungen:
Abbildung 2: Die verschiedenen Teile einer ProgressStyle notification.Figure 3. Apps can set a vehicle image for the tracker icon and use segments
and points to denote the rideshare experience and milestones.
Set up
Use the right APIs and follow best practices to provide the best user experience
for progress updates.
Use the right visual elements to guide users. For example, rideshare apps
should set a vehicle image and use the most accurate color of the vehicle in
the notification using Notification#setLargeIcon.
Use concise and clear language to define the progress of the user journey.
Time of arrival, driver name, and state of the journey are important text
that the notification should communicate.
Provide useful and relevant actions in the notification that streamline
the user journey. For example, providing "Tip" and "Add dish" to a newly
initiated food delivery order are useful actions before delivery.
Use segments and points to denote states. For example, segments
can colorize the state and duration of traffic in a rideshare journey.
Points represent states for milestones such as food preparation, delivery,
and passenger pickup.
Update the progress experience to accurately reflect the actual
progression of the journey. For example, changes in traffic conditions can
be reflected in changes in segment colors and updates in text.
The following example shows a ProgressStyle notification for a rideshare app.
The example shows the use of a vehicle image for the tracker icon. It also shows
the use of segments and points to denote the rideshare experience and
milestones.
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-06-18 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-06-18 (UTC)."],[],[]]