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<androidx.constraintlayout.widget.ConstraintLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:fitsSystemWindows="true" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 <ImageView 24 android:id="@+id/global_screenshot_actions_container_background" 25 android:visibility="gone" 26 android:layout_height="0dp" 27 android:layout_width="0dp" 28 android:elevation="1dp" 29 android:background="@drawable/action_chip_container_background" 30 android:layout_marginStart="@dimen/screenshot_action_container_margin_horizontal" 31 app:layout_constraintBottom_toBottomOf="@+id/global_screenshot_actions_container" 32 app:layout_constraintStart_toStartOf="parent" 33 app:layout_constraintTop_toTopOf="@+id/global_screenshot_actions_container" 34 app:layout_constraintEnd_toEndOf="@+id/global_screenshot_actions_container"/> 35 <HorizontalScrollView 36 android:id="@+id/global_screenshot_actions_container" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_marginEnd="@dimen/screenshot_action_container_margin_horizontal" 40 android:layout_marginBottom="@dimen/screenshot_action_container_offset_y" 41 android:paddingHorizontal="@dimen/screenshot_action_container_padding_right" 42 android:paddingVertical="@dimen/screenshot_action_container_padding_vertical" 43 android:elevation="1dp" 44 android:scrollbars="none" 45 app:layout_constraintHorizontal_bias="0" 46 app:layout_constraintWidth_percent="1.0" 47 app:layout_constraintWidth_max="wrap" 48 app:layout_constraintBottom_toBottomOf="parent" 49 app:layout_constraintStart_toEndOf="@+id/global_screenshot_preview" 50 app:layout_constraintEnd_toEndOf="parent"> 51 <LinearLayout 52 android:id="@+id/global_screenshot_actions" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content"/> 55 </HorizontalScrollView> 56 <include layout="@layout/global_screenshot_preview"/> 57</androidx.constraintlayout.widget.ConstraintLayout> 58