diff --git a/core/res/res/drawable/toast_frame.xml b/core/res/res/drawable/toast_frame.xml index d57bd6a554e1c..44c00c0521b4c 100644 --- a/core/res/res/drawable/toast_frame.xml +++ b/core/res/res/drawable/toast_frame.xml @@ -17,8 +17,7 @@ --> - - - + + diff --git a/core/res/res/layout/transient_notification.xml b/core/res/res/layout/transient_notification.xml index db586ec37cf11..8fcb77ff4ebd6 100644 --- a/core/res/res/layout/transient_notification.xml +++ b/core/res/res/layout/transient_notification.xml @@ -18,24 +18,27 @@ */ --> - + - + android:ellipsize="end" + android:maxLines="2" + android:paddingTop="12dp" + android:paddingBottom="12dp" + android:lineHeight="20sp" + android:textAppearance="@style/TextAppearance.Toast"/> - - diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml index 9e87a47219f3f..42c2c6912d819 100644 --- a/core/res/res/values-land/dimens.xml +++ b/core/res/res/values-land/dimens.xml @@ -78,4 +78,5 @@ 480dp + 24dp diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 3c712edffa638..1ca54985dfbcf 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -30,7 +30,13 @@ will be displayed in the app launcher and elsewhere. --> 48dip - 24dp + + 48dp + + 300dp + + 14sp + @dimen/status_bar_height_portrait - - - - diff --git a/packages/SystemUI/res/layout/text_toast.xml b/packages/SystemUI/res/layout/text_toast.xml index de4e062805fec..ad558d8053fbf 100644 --- a/packages/SystemUI/res/layout/text_toast.xml +++ b/packages/SystemUI/res/layout/text_toast.xml @@ -20,32 +20,30 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:maxWidth="@dimen/toast_width" android:orientation="horizontal" - android:background="@drawable/toast_background" - android:backgroundTint="?android:attr/colorBackground" + android:gravity="center_vertical" + android:maxWidth="@*android:dimen/toast_width" + android:background="@android:drawable/toast_frame" android:layout_marginEnd="16dp" android:layout_marginStart="16dp" - android:gravity="center_vertical"> + android:paddingStart="16dp" + android:paddingEnd="16dp"> - + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginTop="10dp" + android:layout_marginBottom="10dp" + android:layout_marginEnd="10dp"/> + android:lineHeight="20sp" + android:textAppearance="@*android:style/TextAppearance.Toast"/> diff --git a/packages/SystemUI/res/values-land/dimens.xml b/packages/SystemUI/res/values-land/dimens.xml index 24c7655e5ae4e..51d7b8eff5fc3 100644 --- a/packages/SystemUI/res/values-land/dimens.xml +++ b/packages/SystemUI/res/values-land/dimens.xml @@ -52,6 +52,4 @@ 4dp 8dp - - 24dp diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index b07df9caa95bb..4bc5a300e833b 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1359,11 +1359,4 @@ 24dp 12dp - - 296dp - 1 - 14sp - 48dp - 48dp - 28dp diff --git a/packages/SystemUI/src/com/android/systemui/toast/SystemUIToast.java b/packages/SystemUI/src/com/android/systemui/toast/SystemUIToast.java index 365cd2a5d20b3..fab1655b1262b 100644 --- a/packages/SystemUI/src/com/android/systemui/toast/SystemUIToast.java +++ b/packages/SystemUI/src/com/android/systemui/toast/SystemUIToast.java @@ -187,10 +187,7 @@ public class SystemUIToast implements ToastPlugin.Toast { mPluginToast.onOrientationChange(orientation); } - mDefaultY = mContext.getResources().getDimensionPixelSize( - mToastStyleEnabled - ? com.android.systemui.R.dimen.toast_y_offset - : R.dimen.toast_y_offset); + mDefaultY = mContext.getResources().getDimensionPixelSize(R.dimen.toast_y_offset); mDefaultGravity = mContext.getResources().getInteger(R.integer.config_toastDefaultGravity); }