| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2021 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <androidx.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:background="?android:colorBackgroundFloating" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <Button |
| android:id="@+id/save" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/save" |
| app:layout_constraintEnd_toStartOf="@id/cancel" |
| app:layout_constraintHorizontal_chainStyle="packed" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@id/guideline" /> |
| |
| <Button |
| android:id="@+id/cancel" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/cancel" |
| app:layout_constraintEnd_toStartOf="@id/edit" |
| app:layout_constraintStart_toEndOf="@id/save" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@id/guideline" /> |
| |
| <Button |
| android:id="@+id/edit" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/screenshot_edit_label" |
| app:layout_constraintEnd_toStartOf="@id/share" |
| app:layout_constraintStart_toEndOf="@id/cancel" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@id/guideline" /> |
| |
| <Button |
| android:id="@+id/share" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@*android:string/share" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toEndOf="@+id/edit" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@id/guideline" /> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/guideline" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| app:layout_constraintGuide_percent="0.1" /> |
| |
| <ImageView |
| android:id="@+id/preview" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="42dp" |
| android:layout_marginHorizontal="48dp" |
| app:layout_constrainedHeight="true" |
| app:layout_constrainedWidth="true" |
| app:layout_constraintTop_toBottomOf="@id/guideline" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| tools:background="?android:colorBackground" |
| tools:minHeight="100dp" |
| tools:minWidth="100dp" /> |
| |
| <com.android.systemui.screenshot.CropView |
| android:id="@+id/crop_view" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="42dp" |
| app:layout_constrainedHeight="true" |
| app:layout_constrainedWidth="true" |
| app:layout_constraintTop_toBottomOf="@id/guideline" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:handleThickness="@dimen/screenshot_crop_handle_thickness" |
| app:handleColor="@*android:color/accent_device_default" |
| app:scrimColor="@color/screenshot_crop_scrim" |
| tools:background="?android:colorBackground" |
| tools:minHeight="100dp" |
| tools:minWidth="100dp" /> |
| |
| <com.android.systemui.screenshot.MagnifierView |
| android:id="@+id/magnifier" |
| android:visibility="invisible" |
| android:layout_width="200dp" |
| android:layout_height="200dp" |
| android:elevation="2dp" |
| app:layout_constraintTop_toBottomOf="@id/guideline" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:handleThickness="@dimen/screenshot_crop_handle_thickness" |
| app:handleColor="@*android:color/accent_device_default" |
| app:scrimColor="@color/screenshot_crop_scrim" |
| app:borderThickness="4dp" |
| app:borderColor="#fff" |
| /> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| |