fragment_uri_input.xml (3450B)
1 <?xml version="1.0" encoding="utf-8"?><!-- 2 ~ This file is part of GNU Taler 3 ~ (C) 2020 Taler Systems S.A. 4 ~ 5 ~ GNU Taler is free software; you can redistribute it and/or modify it under the 6 ~ terms of the GNU General Public License as published by the Free Software 7 ~ Foundation; either version 3, or (at your option) any later version. 8 ~ 9 ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY 10 ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 ~ 13 ~ You should have received a copy of the GNU General Public License along with 14 ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 --> 16 17 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <com.google.android.material.textfield.TextInputLayout 24 android:id="@+id/uriLayout" 25 style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense" 26 android:layout_width="0dp" 27 android:layout_height="wrap_content" 28 android:layout_margin="16dp" 29 android:hint="@string/enter_uri_label" 30 app:placeholderText="@string/enter_uri_prefix" 31 app:boxBackgroundMode="outline" 32 app:endIconMode="clear_text" 33 app:endIconTint="?attr/colorControlNormal" 34 app:layout_constraintEnd_toEndOf="parent" 35 app:layout_constraintStart_toStartOf="parent" 36 app:layout_constraintTop_toTopOf="parent"> 37 38 <com.google.android.material.textfield.TextInputEditText 39 android:id="@+id/uriView" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:inputType="textUri" /> 43 44 </com.google.android.material.textfield.TextInputLayout> 45 46 <com.google.android.material.button.MaterialButton 47 android:id="@+id/pasteButton" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_marginStart="16dp" 51 android:layout_marginTop="16dp" 52 android:layout_marginEnd="16dp" 53 android:layout_weight="1" 54 android:text="@string/paste" 55 android:textColor="?colorOnPrimary" 56 app:icon="@drawable/ic_content_paste" 57 app:iconTint="?colorOnPrimary" 58 app:layout_constraintEnd_toStartOf="@+id/okButton" 59 app:layout_constraintHorizontal_chainStyle="spread_inside" 60 app:layout_constraintStart_toStartOf="parent" 61 app:layout_constraintTop_toBottomOf="@+id/uriLayout" 62 tools:ignore="RtlHardcoded" /> 63 64 <Button 65 android:id="@+id/okButton" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_marginStart="16dp" 69 android:layout_marginTop="16dp" 70 android:layout_marginEnd="16dp" 71 android:backgroundTint="@color/green" 72 android:text="@string/open" 73 android:textColor="@android:color/white" 74 app:layout_constraintEnd_toEndOf="parent" 75 app:layout_constraintStart_toEndOf="@+id/pasteButton" 76 app:layout_constraintTop_toBottomOf="@+id/uriLayout" /> 77 78 </androidx.constraintlayout.widget.ConstraintLayout>