fragment_config.xml (4936B)
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/urlView" 25 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" 26 android:layout_width="0dp" 27 android:layout_height="wrap_content" 28 android:layout_margin="@dimen/default_margin" 29 android:hint="@string/config_bank_url" 30 app:endIconMode="clear_text" 31 app:layout_constraintEnd_toEndOf="parent" 32 app:layout_constraintStart_toStartOf="parent" 33 app:layout_constraintTop_toTopOf="parent"> 34 35 <com.google.android.material.textfield.TextInputEditText 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:inputType="textUri" /> 39 40 </com.google.android.material.textfield.TextInputLayout> 41 42 <com.google.android.material.textfield.TextInputLayout 43 android:id="@+id/usernameView" 44 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" 45 android:layout_width="0dp" 46 android:layout_height="wrap_content" 47 android:layout_margin="@dimen/default_margin" 48 android:hint="@string/config_username" 49 app:boxBackgroundMode="outline" 50 app:layout_constraintEnd_toEndOf="parent" 51 app:layout_constraintStart_toStartOf="parent" 52 app:layout_constraintTop_toBottomOf="@+id/urlView"> 53 54 <com.google.android.material.textfield.TextInputEditText 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:inputType="text" /> 58 59 </com.google.android.material.textfield.TextInputLayout> 60 61 <com.google.android.material.textfield.TextInputLayout 62 android:id="@+id/passwordView" 63 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" 64 android:layout_width="0dp" 65 android:layout_height="wrap_content" 66 android:layout_margin="@dimen/default_margin" 67 android:hint="@string/config_password" 68 app:boxBackgroundMode="outline" 69 app:layout_constraintEnd_toEndOf="parent" 70 app:layout_constraintStart_toStartOf="parent" 71 app:layout_constraintTop_toBottomOf="@+id/usernameView" 72 app:passwordToggleEnabled="true"> 73 74 <com.google.android.material.textfield.TextInputEditText 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:inputType="textWebPassword" /> 78 79 </com.google.android.material.textfield.TextInputLayout> 80 81 <Button 82 android:id="@+id/saveButton" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_margin="@dimen/default_margin" 86 android:text="@string/config_button_save" 87 app:layout_constraintEnd_toEndOf="parent" 88 app:layout_constraintTop_toBottomOf="@+id/passwordView" /> 89 90 <ProgressBar 91 android:id="@+id/progressBar" 92 style="?android:attr/progressBarStyle" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:visibility="invisible" 96 app:layout_constraintBottom_toBottomOf="@+id/saveButton" 97 app:layout_constraintEnd_toEndOf="@+id/saveButton" 98 app:layout_constraintStart_toStartOf="@+id/saveButton" 99 app:layout_constraintTop_toTopOf="@+id/saveButton" 100 tools:visibility="visible" /> 101 102 <TextView 103 android:id="@+id/demoView" 104 android:layout_width="0dp" 105 android:layout_height="wrap_content" 106 android:layout_margin="@dimen/default_margin" 107 android:text="@string/config_demo_hint" 108 app:layout_constraintEnd_toEndOf="parent" 109 app:layout_constraintStart_toStartOf="parent" 110 app:layout_constraintTop_toBottomOf="@+id/saveButton" /> 111 112 </androidx.constraintlayout.widget.ConstraintLayout>