Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf7efee3 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Notifs] Fade out end of status bar notif chip text, don't ellipsize

To leave as much room as possible for text in the status bar, we don't
want to ellipsize the text if it doesn't fit because the ... takes up a
lot of room. Instead, just fade out the end.

Bug: 364653005
Flag: com.android.systemui.status_bar_notification_chips
Test: Manual, see screenshot in bug
Change-Id: I095665a171b8276ca5724304b5dabb6c45c7b6e8
parent dba90841
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,9 +55,14 @@
        />

        <!-- Shows generic text. -->
        <!-- Since there's so little room in the status bar chip area, don't ellipsize the text and
             instead just fade it out a bit at the end. -->
        <TextView
            android:id="@+id/ongoing_activity_chip_text"
            style="@style/StatusBar.Chip.Text"
            android:ellipsize="none"
            android:requiresFadingEdge="horizontal"
            android:fadingEdgeLength="@dimen/ongoing_activity_chip_text_fading_edge_length"
            android:visibility="gone"
            />

+1 −0
Original line number Diff line number Diff line
@@ -1749,6 +1749,7 @@
    <dimen name="ongoing_activity_chip_icon_text_padding">4dp</dimen>
    <!-- The end padding for the timer text view. Only used if an embedded padding icon is used. -->
    <dimen name="ongoing_activity_chip_text_end_padding_for_embedded_padding_icon">6dp</dimen>
    <dimen name="ongoing_activity_chip_text_fading_edge_length">12dp</dimen>
    <dimen name="ongoing_activity_chip_corner_radius">28dp</dimen>

    <!-- Status bar user chip -->