1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<com.android.systemui.screenshot.DraggableConstraintLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 <ImageView 23 android:id="@+id/actions_container_background" 24 android:visibility="gone" 25 android:layout_height="0dp" 26 android:layout_width="0dp" 27 android:elevation="4dp" 28 android:background="@drawable/action_chip_container_background" 29 android:layout_marginStart="@dimen/overlay_action_container_margin_horizontal" 30 android:layout_marginBottom="@dimen/overlay_action_container_margin_bottom" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintTop_toTopOf="@+id/actions_container" 33 app:layout_constraintEnd_toEndOf="@+id/actions_container" 34 app:layout_constraintBottom_toTopOf="@id/guideline"/> 35 <HorizontalScrollView 36 android:id="@+id/actions_container" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_marginEnd="@dimen/overlay_action_container_margin_horizontal" 40 android:paddingEnd="@dimen/overlay_action_container_padding_end" 41 android:paddingVertical="@dimen/overlay_action_container_padding_vertical" 42 android:elevation="4dp" 43 android:scrollbars="none" 44 app:layout_constraintHorizontal_bias="0" 45 app:layout_constraintWidth_percent="1.0" 46 app:layout_constraintWidth_max="wrap" 47 app:layout_constraintStart_toEndOf="@+id/screenshot_preview_border" 48 app:layout_constraintEnd_toEndOf="parent" 49 app:layout_constraintBottom_toBottomOf="@id/actions_container_background"> 50 <LinearLayout 51 android:id="@+id/screenshot_actions" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content"> 54 <include layout="@layout/overlay_action_chip" 55 android:id="@+id/screenshot_share_chip"/> 56 <include layout="@layout/overlay_action_chip" 57 android:id="@+id/screenshot_edit_chip"/> 58 <include layout="@layout/overlay_action_chip" 59 android:id="@+id/screenshot_scroll_chip" 60 android:visibility="gone" /> 61 </LinearLayout> 62 </HorizontalScrollView> 63 <View 64 android:id="@+id/screenshot_preview_border" 65 android:layout_width="0dp" 66 android:layout_height="0dp" 67 android:layout_marginStart="@dimen/overlay_preview_container_margin" 68 android:layout_marginTop="@dimen/overlay_border_width_neg" 69 android:layout_marginEnd="@dimen/overlay_border_width_neg" 70 android:layout_marginBottom="@dimen/overlay_preview_container_margin" 71 android:elevation="7dp" 72 android:alpha="0" 73 android:background="@drawable/overlay_border" 74 app:layout_constraintStart_toStartOf="@id/actions_container_background" 75 app:layout_constraintTop_toTopOf="@id/screenshot_preview" 76 app:layout_constraintEnd_toEndOf="@id/screenshot_preview" 77 app:layout_constraintBottom_toBottomOf="@id/actions_container_background"/> 78 <ImageView 79 android:id="@+id/screenshot_preview" 80 android:visibility="invisible" 81 android:layout_width="@dimen/overlay_x_scale" 82 android:layout_height="wrap_content" 83 android:layout_marginStart="@dimen/overlay_border_width" 84 android:layout_marginBottom="@dimen/overlay_border_width" 85 android:layout_gravity="center" 86 android:elevation="7dp" 87 android:contentDescription="@string/screenshot_edit_description" 88 android:scaleType="fitEnd" 89 android:background="@drawable/overlay_preview_background" 90 android:adjustViewBounds="true" 91 android:clickable="true" 92 app:layout_constraintStart_toStartOf="@id/screenshot_preview_border" 93 app:layout_constraintBottom_toBottomOf="@id/screenshot_preview_border"/> 94 <ImageView 95 android:id="@+id/screenshot_badge" 96 android:layout_width="48dp" 97 android:layout_height="48dp" 98 android:visibility="gone" 99 android:elevation="8dp" 100 app:layout_constraintBottom_toBottomOf="@id/screenshot_preview_border" 101 app:layout_constraintEnd_toEndOf="@id/screenshot_preview_border"/> 102 <FrameLayout 103 android:id="@+id/screenshot_dismiss_button" 104 android:layout_width="@dimen/overlay_dismiss_button_tappable_size" 105 android:layout_height="@dimen/overlay_dismiss_button_tappable_size" 106 android:elevation="10dp" 107 android:visibility="gone" 108 app:layout_constraintStart_toEndOf="@id/screenshot_preview" 109 app:layout_constraintEnd_toEndOf="@id/screenshot_preview" 110 app:layout_constraintTop_toTopOf="@id/screenshot_preview" 111 app:layout_constraintBottom_toTopOf="@id/screenshot_preview" 112 android:contentDescription="@string/screenshot_dismiss_description"> 113 <ImageView 114 android:id="@+id/screenshot_dismiss_image" 115 android:layout_width="match_parent" 116 android:layout_height="match_parent" 117 android:layout_margin="@dimen/overlay_dismiss_button_margin" 118 android:src="@drawable/overlay_cancel"/> 119 </FrameLayout> 120 <ImageView 121 android:id="@+id/screenshot_scrollable_preview" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:scaleType="matrix" 125 android:visibility="gone" 126 app:layout_constraintStart_toStartOf="@id/screenshot_preview" 127 app:layout_constraintTop_toTopOf="@id/screenshot_preview" 128 android:elevation="7dp"/> 129 130 <androidx.constraintlayout.widget.Guideline 131 android:id="@+id/guideline" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:orientation="horizontal" 135 app:layout_constraintGuide_end="0dp" /> 136 137 <FrameLayout 138 android:id="@+id/screenshot_message_container" 139 android:layout_width="0dp" 140 android:layout_height="wrap_content" 141 android:layout_marginHorizontal="@dimen/overlay_action_container_margin_horizontal" 142 android:layout_marginTop="4dp" 143 android:layout_marginBottom="@dimen/overlay_action_container_margin_bottom" 144 android:paddingHorizontal="@dimen/overlay_action_container_padding_end" 145 android:paddingVertical="@dimen/overlay_action_container_padding_vertical" 146 android:elevation="4dp" 147 android:background="@drawable/action_chip_container_background" 148 android:visibility="gone" 149 app:layout_constraintTop_toBottomOf="@id/guideline" 150 app:layout_constraintStart_toStartOf="parent" 151 app:layout_constraintEnd_toEndOf="parent" 152 app:layout_constraintWidth_max="450dp" 153 app:layout_constraintHorizontal_bias="0" 154 > 155 <include layout="@layout/screenshot_work_profile_first_run" /> 156 <include layout="@layout/screenshot_detection_notice" /> 157 </FrameLayout> 158</com.android.systemui.screenshot.DraggableConstraintLayout> 159