|
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | + Copyright 2017 Google Inc. |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +--> |
| 16 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 18 | + android:id="@+id/container" |
| 19 | + android:layout_width="match_parent" |
| 20 | + android:layout_height="match_parent"> |
| 21 | + |
| 22 | + <ImageView |
| 23 | + android:id="@+id/header" |
| 24 | + android:layout_width="0dp" |
| 25 | + android:layout_height="150dp" |
| 26 | + android:layout_marginBottom="16dp" |
| 27 | + android:contentDescription="@string/dummy" |
| 28 | + android:scaleType="centerCrop" |
| 29 | + android:src="@drawable/singapore" |
| 30 | + app:layout_constraintEnd_toEndOf="parent" |
| 31 | + app:layout_constraintStart_toStartOf="parent" |
| 32 | + app:layout_constraintTop_toTopOf="parent" /> |
| 33 | + |
| 34 | + <ImageView |
| 35 | + android:id="@+id/favorite" |
| 36 | + android:layout_width="36dp" |
| 37 | + android:layout_height="36dp" |
| 38 | + android:layout_marginEnd="16dp" |
| 39 | + android:layout_marginBottom="-16dp" |
| 40 | + android:background="@drawable/info_background" |
| 41 | + android:contentDescription="@string/dummy" |
| 42 | + android:padding="5dp" |
| 43 | + android:src="@drawable/ic_star" |
| 44 | + app:layout_constraintBottom_toBottomOf="@id/header" |
| 45 | + app:layout_constraintEnd_toEndOf="parent" /> |
| 46 | + |
| 47 | + <TextView |
| 48 | + android:id="@+id/title" |
| 49 | + android:layout_width="wrap_content" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:layout_marginStart="16dp" |
| 52 | + android:layout_marginTop="16dp" |
| 53 | + android:text="@string/singapore" |
| 54 | + android:textSize="24sp" |
| 55 | + app:layout_constraintStart_toStartOf="parent" |
| 56 | + app:layout_constraintTop_toBottomOf="@+id/header" /> |
| 57 | + |
| 58 | + <EditText |
| 59 | + android:id="@+id/cameraType" |
| 60 | + android:layout_width="0dp" |
| 61 | + android:layout_height="wrap_content" |
| 62 | + android:layout_marginTop="8dp" |
| 63 | + android:ems="10" |
| 64 | + android:inputType="textPersonName" |
| 65 | + android:text="@string/camera_value" |
| 66 | + app:layout_constraintEnd_toEndOf="@+id/settings" |
| 67 | + app:layout_constraintStart_toStartOf="@+id/settings" |
| 68 | + app:layout_constraintTop_toBottomOf="@+id/title" /> |
| 69 | + |
| 70 | + <TextView |
| 71 | + android:id="@+id/cameraLabel" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_marginStart="16dp" |
| 75 | + android:labelFor="@+id/cameraType" |
| 76 | + android:text="@string/camera" |
| 77 | + app:layout_constraintBaseline_toBaselineOf="@+id/cameraType" |
| 78 | + app:layout_constraintStart_toStartOf="parent" /> |
| 79 | + |
| 80 | + <TextView |
| 81 | + android:id="@+id/settingsLabel" |
| 82 | + android:layout_width="wrap_content" |
| 83 | + android:layout_height="wrap_content" |
| 84 | + android:layout_marginStart="16dp" |
| 85 | + android:labelFor="@+id/settings" |
| 86 | + android:text="@string/settings" |
| 87 | + app:layout_constraintBaseline_toBaselineOf="@+id/settings" |
| 88 | + app:layout_constraintStart_toStartOf="parent" /> |
| 89 | + |
| 90 | + <EditText |
| 91 | + android:id="@+id/settings" |
| 92 | + android:layout_width="0dp" |
| 93 | + android:layout_height="wrap_content" |
| 94 | + android:layout_marginStart="6dp" |
| 95 | + android:layout_marginTop="8dp" |
| 96 | + android:ems="10" |
| 97 | + android:inputType="textPersonName" |
| 98 | + android:text="@string/camera_settings" |
| 99 | + app:layout_constraintEnd_toEndOf="@+id/description" |
| 100 | + app:layout_constraintStart_toEndOf="@+id/settingsLabel" |
| 101 | + app:layout_constraintTop_toBottomOf="@+id/cameraType" /> |
| 102 | + |
| 103 | + <Button |
| 104 | + android:id="@+id/upload" |
| 105 | + android:layout_width="wrap_content" |
| 106 | + android:layout_height="wrap_content" |
| 107 | + android:layout_marginEnd="16dp" |
| 108 | + android:layout_marginBottom="16dp" |
| 109 | + android:text="@string/upload" |
| 110 | + app:layout_constraintBottom_toBottomOf="parent" |
| 111 | + app:layout_constraintEnd_toStartOf="@id/discard" /> |
| 112 | + |
| 113 | + <Button |
| 114 | + android:id="@+id/discard" |
| 115 | + android:layout_width="wrap_content" |
| 116 | + android:layout_height="wrap_content" |
| 117 | + android:layout_marginEnd="8dp" |
| 118 | + android:elevation="0dp" |
| 119 | + android:text="@string/discard" |
| 120 | + app:layout_constraintBaseline_toBaselineOf="@+id/upload" |
| 121 | + app:layout_constraintEnd_toEndOf="parent" /> |
| 122 | + |
| 123 | + <TextView |
| 124 | + android:id="@+id/description" |
| 125 | + android:layout_width="0dp" |
| 126 | + android:layout_height="0dp" |
| 127 | + android:layout_marginStart="16dp" |
| 128 | + android:layout_marginTop="8dp" |
| 129 | + android:layout_marginEnd="16dp" |
| 130 | + android:layout_marginBottom="8dp" |
| 131 | + android:ellipsize="end" |
| 132 | + android:fadingEdge="vertical" |
| 133 | + android:text="@string/singapore_description" |
| 134 | + android:textSize="15sp" |
| 135 | + app:layout_constraintBottom_toTopOf="@+id/discard" |
| 136 | + app:layout_constraintHeight="wrap_content" |
| 137 | + app:layout_constraintLeft_toLeftOf="parent" |
| 138 | + app:layout_constraintRight_toRightOf="parent" |
| 139 | + app:layout_constraintTop_toBottomOf="@+id/settings" |
| 140 | + app:layout_constraintVertical_bias="0" /> |
| 141 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments