diff options
Diffstat (limited to 'packages/SystemUI/res/layout/long_screenshot.xml')
-rw-r--r-- | packages/SystemUI/res/layout/long_screenshot.xml | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/packages/SystemUI/res/layout/long_screenshot.xml b/packages/SystemUI/res/layout/long_screenshot.xml index 3f4baaf27b84..8a3a39f9d72c 100644 --- a/packages/SystemUI/res/layout/long_screenshot.xml +++ b/packages/SystemUI/res/layout/long_screenshot.xml @@ -32,13 +32,29 @@ android:text="@string/save" android:layout_marginStart="8dp" android:layout_marginTop="4dp" - android:background="@drawable/screenshot_save_background" + android:background="@drawable/screenshot_button_background" android:textColor="?android:textColorSecondary" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/preview" /> <ImageButton + android:id="@+id/delete" + style="@android:style/Widget.Material.Button.Borderless" + android:tint="?android:textColorPrimary" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginTop="4dp" + android:padding="12dp" + android:src="@drawable/ic_screenshot_delete" + android:scaleType="fitCenter" + android:contentDescription="@*android:string/delete" + android:tooltipText="@*android:string/delete" + app:layout_constraintEnd_toStartOf="@id/share" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toTopOf="@id/preview" /> + + <ImageButton android:id="@+id/share" style="@android:style/Widget.Material.Button.Borderless" android:tint="?android:textColorPrimary" @@ -78,6 +94,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="matrix" + android:visibility="invisible" app:layout_constraintTop_toTopOf="@id/preview" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -97,8 +114,9 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toBottomOf="parent" app:handleThickness="@dimen/screenshot_crop_handle_thickness" - app:handleColor="?androidprv:attr/colorAccentPrimary" - app:scrimColor="@color/screenshot_crop_scrim" + app:handleColor="?android:attr/colorAccent" + app:scrimColor="?android:colorBackgroundFloating" + app:scrimAlpha="128" app:containerBackgroundColor="?android:colorBackgroundFloating" tools:background="?android:colorBackground" tools:minHeight="100dp" @@ -113,8 +131,9 @@ app:layout_constraintTop_toTopOf="@id/preview" app:layout_constraintLeft_toLeftOf="parent" app:handleThickness="@dimen/screenshot_crop_handle_thickness" - app:handleColor="?androidprv:attr/colorAccentSecondary" - app:scrimColor="@color/screenshot_crop_scrim" + app:handleColor="?android:attr/colorAccent" + app:scrimColor="?android:colorBackgroundFloating" + app:scrimAlpha="128" app:borderThickness="4dp" app:borderColor="#fff" /> @@ -141,7 +160,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="@id/preview" - app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" android:scaleType="centerCrop" android:visibility="invisible" /> |