summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/gpodnetauth_credentials.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/gpodnetauth_credentials.xml')
-rw-r--r--app/src/main/res/layout/gpodnetauth_credentials.xml63
1 files changed, 31 insertions, 32 deletions
diff --git a/app/src/main/res/layout/gpodnetauth_credentials.xml b/app/src/main/res/layout/gpodnetauth_credentials.xml
index e318f11d9..a5b8c594d 100644
--- a/app/src/main/res/layout/gpodnetauth_credentials.xml
+++ b/app/src/main/res/layout/gpodnetauth_credentials.xml
@@ -7,11 +7,17 @@
android:orientation="vertical">
<TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:text="@string/synchronization_credentials_explanation" />
+
+ <TextView
android:id="@+id/createAccountWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gpodnetauth_encryption_warning"
- android:textColor="#F44336"
+ android:textColor="?attr/icon_red"
android:textStyle="bold"
android:visibility="invisible" />
@@ -25,6 +31,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/username_label"
+ android:inputType="textNoSuggestions"
android:lines="1"
android:imeOptions="actionNext|flagNoFullscreen" />
@@ -33,6 +40,7 @@
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<com.google.android.material.textfield.TextInputEditText
@@ -43,42 +51,33 @@
android:inputType="textPassword"
android:lines="1"
android:imeOptions="actionNext|flagNoFullscreen"
- android:imeActionLabel="@string/gpodnetauth_login_butLabel" />
+ android:imeActionLabel="@string/synchronization_login_butLabel" />
</com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
- android:layout_width="match_parent"
+ <ProgressBar
+ android:id="@+id/progBarLogin"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="end|center_vertical">
-
- <TextView
- android:id="@+id/credentialsError"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:textColor="?attr/icon_red"
- android:textSize="@dimen/text_size_small"
- android:maxLines="2"
- android:ellipsize="end"
- android:gravity="center"
- tools:text="Error message"
- tools:background="@android:color/holo_green_dark" />
-
- <ProgressBar
- android:id="@+id/progBarLogin"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:layout_gravity="right" />
+ android:visibility="gone"
+ android:layout_gravity="right" />
- <Button
- android:id="@+id/butLogin"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/gpodnetauth_login_butLabel" />
+ <TextView
+ android:id="@+id/credentialsError"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="?attr/icon_red"
+ android:textSize="@dimen/text_size_small"
+ android:maxLines="2"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:visibility="gone"
+ tools:text=" message" />
- </LinearLayout>
+ <Button
+ android:id="@+id/butLogin"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/synchronization_login_butLabel" />
</LinearLayout>