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.GainmapImage xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:id="@+id/gainmap_image"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:orientation="vertical"> 27 28 <RadioGroup android:id="@+id/output_mode" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:orientation="horizontal"> 32 33 <RadioButton android:id="@+id/output_sdr" 34 android:layout_width="wrap_content" 35 android:layout_weight="1" 36 android:layout_height="wrap_content" 37 android:text="SDR" /> 38 39 <RadioButton android:id="@+id/output_gainmap" 40 android:layout_width="wrap_content" 41 android:layout_weight="1" 42 android:layout_height="wrap_content" 43 android:text="Gainmap" /> 44 45 <RadioButton android:id="@+id/output_hdr" 46 android:layout_width="wrap_content" 47 android:layout_weight="1" 48 android:layout_height="wrap_content" 49 android:text="HDR" /> 50 51 <RadioButton android:id="@+id/output_hdr_test" 52 android:layout_width="wrap_content" 53 android:layout_weight="1" 54 android:layout_height="wrap_content" 55 android:text="HDR (test)" /> 56 </RadioGroup> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:orientation="horizontal"> 62 63 <Spinner 64 android:id="@+id/image_selection" 65 android:layout_width="match_parent" 66 android:layout_weight="1" 67 android:layout_height="wrap_content" /> 68 69 <Button 70 android:id="@+id/gainmap_metadata" 71 android:layout_width="match_parent" 72 android:layout_weight="1" 73 android:layout_height="wrap_content" 74 android:text="Gainmap Metadata..." /> 75 76 </LinearLayout> 77 78 <TextView 79 android:id="@+id/error_msg" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:visibility="gone" /> 83 84 <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView 85 android:id="@+id/image" 86 android:layout_width="match_parent" 87 android:layout_height="match_parent" /> 88 89 </LinearLayout> 90 91</com.android.test.silkfx.hdr.GainmapImage> 92