1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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 18<com.android.test.silkfx.hdr.GainmapTransformsTest xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="horizontal"> 27 28 <Button 29 android:id="@+id/original" 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:layout_weight="1" 33 android:text="Original" /> 34 35 <Button 36 android:id="@+id/scaled" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_weight="1" 40 android:text="Scaled (1/3)" /> 41 42 <Button 43 android:id="@+id/rotate_90" 44 android:layout_width="0dp" 45 android:layout_height="wrap_content" 46 android:layout_weight="1" 47 android:text="Rotate 90" /> 48 49 <Button 50 android:id="@+id/rotate_90_scaled" 51 android:layout_width="0dp" 52 android:layout_height="wrap_content" 53 android:layout_weight="1" 54 android:text="Rot90+Scale" /> 55 56 <Button 57 android:id="@+id/crop" 58 android:layout_width="0dp" 59 android:layout_height="wrap_content" 60 android:layout_weight="1" 61 android:text="Crop" /> 62 63 <Button 64 android:id="@+id/crop_200" 65 android:layout_width="0dp" 66 android:layout_height="wrap_content" 67 android:layout_weight="1" 68 android:text="Crop 200" /> 69 70 </LinearLayout> 71 72 <TextView 73 android:id="@+id/source_info" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" /> 76 77 <LinearLayout 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:orientation="horizontal"> 81 82 <LinearLayout 83 android:layout_width="0dp" 84 android:layout_height="match_parent" 85 android:orientation="vertical" 86 android:layout_weight="1"> 87 88 <TextView 89 android:id="@+id/sdr_label" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" /> 92 93 <ImageView 94 android:id="@+id/sdr_source" 95 android:layout_width="match_parent" 96 android:layout_height="match_parent" 97 android:layout_margin="8dp" 98 android:scaleType="fitStart" /> 99 </LinearLayout> 100 101 <LinearLayout 102 android:layout_width="0dp" 103 android:layout_height="match_parent" 104 android:orientation="vertical" 105 android:layout_weight="1"> 106 107 <TextView 108 android:id="@+id/gainmap_label" 109 android:layout_width="wrap_content" 110 android:layout_height="wrap_content" /> 111 112 <ImageView 113 android:id="@+id/gainmap" 114 android:layout_width="match_parent" 115 android:layout_height="match_parent" 116 android:layout_margin="8dp" 117 android:scaleType="fitStart" /> 118 </LinearLayout> 119 120 </LinearLayout> 121 122</com.android.test.silkfx.hdr.GainmapTransformsTest>