Loading core/res/res/layout/notification_2025_template_header.xml +22 −4 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_toStartOf="@id/expand_button" android:layout_toStartOf="@id/expand_button_container" android:layout_alignWithParentIfMissing="true" android:layout_marginVertical="@dimen/notification_2025_margin" android:clipChildren="false" Loading @@ -81,12 +81,30 @@ android:focusable="false" /> <LinearLayout android:id="@+id/expand_button_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:orientation="vertical" > <FrameLayout android:id="@+id/expand_button_spacer" android:layout_width="@dimen/notification_2025_expand_button_pill_width" android:layout_height="@dimen/notification_2025_expand_button_pill_height" android:layout_centerVertical="true" android:layout_alignParentEnd="true" android:layout_margin="@dimen/notification_2025_margin" android:visibility="gone" /> <include layout="@layout/notification_2025_expand_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|end" android:layout_alignParentEnd="true" /> </LinearLayout> <include layout="@layout/notification_close_button" android:id="@+id/close_button" android:layout_width="@dimen/notification_close_button_size" Loading core/res/res/layout/notification_template_header.xml +20 −4 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ android:layout_height="match_parent" android:layout_alignParentStart="true" android:layout_centerVertical="true" android:layout_toStartOf="@id/expand_button" android:layout_toStartOf="@id/expand_button_container" android:layout_alignWithParentIfMissing="true" android:clipChildren="false" android:gravity="center_vertical" Loading @@ -83,12 +83,28 @@ android:focusable="false" /> <LinearLayout android:id="@+id/expand_button_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:orientation="vertical" > <FrameLayout android:id="@+id/expand_button_spacer" android:layout_width="@dimen/notification_expand_button_pill_height" android:layout_height="@dimen/notification_header_height" android:layout_centerVertical="true" android:layout_alignParentEnd="true" android:layout_marginHorizontal="16dp" android:visibility="gone" /> <include layout="@layout/notification_expand_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_alignParentEnd="true" /> </LinearLayout> <include layout="@layout/notification_close_button" android:id="@+id/close_button" android:layout_width="@dimen/notification_close_button_size" Loading core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3235,6 +3235,8 @@ <java-symbol type="id" name="header_text" /> <java-symbol type="id" name="header_text_secondary" /> <java-symbol type="id" name="expand_button" /> <java-symbol type="id" name="expand_button_spacer" /> <java-symbol type="id" name="expand_button_container" /> <java-symbol type="id" name="expand_button_pill" /> <java-symbol type="id" name="expand_button_pill_colorized_layer" /> <java-symbol type="id" name="expand_button_number" /> Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java +10 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.view.ViewGroup; import android.view.animation.Interpolator; import android.view.animation.PathInterpolator; import android.widget.DateTimeView; import android.widget.FrameLayout; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; Loading @@ -41,6 +42,7 @@ import com.android.app.animation.Interpolators; import com.android.internal.widget.CachingIconView; import com.android.internal.widget.NotificationCloseButton; import com.android.internal.widget.NotificationExpandButton; import com.android.systemui.Flags; import com.android.systemui.res.R; import com.android.systemui.statusbar.TransformableView; import com.android.systemui.statusbar.ViewTransformationHelper; Loading @@ -67,6 +69,7 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple private CachingIconView mIcon; private NotificationCloseButton mCloseButton; private NotificationExpandButton mExpandButton; private FrameLayout mExpandButtonSpacer; private View mAltExpandTarget; private View mIconContainer; protected NotificationHeaderView mNotificationHeader; Loading Loading @@ -154,6 +157,10 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple mHeaderText = mView.findViewById(com.android.internal.R.id.header_text); mAppNameText = mView.findViewById(com.android.internal.R.id.app_name_text); mExpandButton = mView.findViewById(com.android.internal.R.id.expand_button); if (Flags.uiRichOngoingForceExpanded()) { mExpandButtonSpacer = mView.findViewById(com.android.internal.R.id.expand_button_spacer); } mAltExpandTarget = mView.findViewById(com.android.internal.R.id.alternate_expand_target); mIconContainer = mView.findViewById(com.android.internal.R.id.conversation_icon_container); mWorkProfileImage = mView.findViewById(com.android.internal.R.id.profile_badge); Loading Loading @@ -295,6 +302,9 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple boolean expandable, View.OnClickListener onClickListener, boolean requestLayout) { if (Flags.uiRichOngoingForceExpanded() && mExpandButtonSpacer != null) { mExpandButtonSpacer.setVisibility(expandable ? GONE : VISIBLE); } mExpandButton.setVisibility(expandable ? VISIBLE : GONE); mExpandButton.setOnClickListener(expandable ? onClickListener : null); if (mAltExpandTarget != null) { Loading Loading
core/res/res/layout/notification_2025_template_header.xml +22 −4 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_toStartOf="@id/expand_button" android:layout_toStartOf="@id/expand_button_container" android:layout_alignWithParentIfMissing="true" android:layout_marginVertical="@dimen/notification_2025_margin" android:clipChildren="false" Loading @@ -81,12 +81,30 @@ android:focusable="false" /> <LinearLayout android:id="@+id/expand_button_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:orientation="vertical" > <FrameLayout android:id="@+id/expand_button_spacer" android:layout_width="@dimen/notification_2025_expand_button_pill_width" android:layout_height="@dimen/notification_2025_expand_button_pill_height" android:layout_centerVertical="true" android:layout_alignParentEnd="true" android:layout_margin="@dimen/notification_2025_margin" android:visibility="gone" /> <include layout="@layout/notification_2025_expand_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|end" android:layout_alignParentEnd="true" /> </LinearLayout> <include layout="@layout/notification_close_button" android:id="@+id/close_button" android:layout_width="@dimen/notification_close_button_size" Loading
core/res/res/layout/notification_template_header.xml +20 −4 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ android:layout_height="match_parent" android:layout_alignParentStart="true" android:layout_centerVertical="true" android:layout_toStartOf="@id/expand_button" android:layout_toStartOf="@id/expand_button_container" android:layout_alignWithParentIfMissing="true" android:clipChildren="false" android:gravity="center_vertical" Loading @@ -83,12 +83,28 @@ android:focusable="false" /> <LinearLayout android:id="@+id/expand_button_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:orientation="vertical" > <FrameLayout android:id="@+id/expand_button_spacer" android:layout_width="@dimen/notification_expand_button_pill_height" android:layout_height="@dimen/notification_header_height" android:layout_centerVertical="true" android:layout_alignParentEnd="true" android:layout_marginHorizontal="16dp" android:visibility="gone" /> <include layout="@layout/notification_expand_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_alignParentEnd="true" /> </LinearLayout> <include layout="@layout/notification_close_button" android:id="@+id/close_button" android:layout_width="@dimen/notification_close_button_size" Loading
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3235,6 +3235,8 @@ <java-symbol type="id" name="header_text" /> <java-symbol type="id" name="header_text_secondary" /> <java-symbol type="id" name="expand_button" /> <java-symbol type="id" name="expand_button_spacer" /> <java-symbol type="id" name="expand_button_container" /> <java-symbol type="id" name="expand_button_pill" /> <java-symbol type="id" name="expand_button_pill_colorized_layer" /> <java-symbol type="id" name="expand_button_number" /> Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java +10 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.view.ViewGroup; import android.view.animation.Interpolator; import android.view.animation.PathInterpolator; import android.widget.DateTimeView; import android.widget.FrameLayout; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; Loading @@ -41,6 +42,7 @@ import com.android.app.animation.Interpolators; import com.android.internal.widget.CachingIconView; import com.android.internal.widget.NotificationCloseButton; import com.android.internal.widget.NotificationExpandButton; import com.android.systemui.Flags; import com.android.systemui.res.R; import com.android.systemui.statusbar.TransformableView; import com.android.systemui.statusbar.ViewTransformationHelper; Loading @@ -67,6 +69,7 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple private CachingIconView mIcon; private NotificationCloseButton mCloseButton; private NotificationExpandButton mExpandButton; private FrameLayout mExpandButtonSpacer; private View mAltExpandTarget; private View mIconContainer; protected NotificationHeaderView mNotificationHeader; Loading Loading @@ -154,6 +157,10 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple mHeaderText = mView.findViewById(com.android.internal.R.id.header_text); mAppNameText = mView.findViewById(com.android.internal.R.id.app_name_text); mExpandButton = mView.findViewById(com.android.internal.R.id.expand_button); if (Flags.uiRichOngoingForceExpanded()) { mExpandButtonSpacer = mView.findViewById(com.android.internal.R.id.expand_button_spacer); } mAltExpandTarget = mView.findViewById(com.android.internal.R.id.alternate_expand_target); mIconContainer = mView.findViewById(com.android.internal.R.id.conversation_icon_container); mWorkProfileImage = mView.findViewById(com.android.internal.R.id.profile_badge); Loading Loading @@ -295,6 +302,9 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper imple boolean expandable, View.OnClickListener onClickListener, boolean requestLayout) { if (Flags.uiRichOngoingForceExpanded() && mExpandButtonSpacer != null) { mExpandButtonSpacer.setVisibility(expandable ? GONE : VISIBLE); } mExpandButton.setVisibility(expandable ? VISIBLE : GONE); mExpandButton.setOnClickListener(expandable ? onClickListener : null); if (mAltExpandTarget != null) { Loading