Better login screen

This commit is contained in:
Bazsalanszky
2023-07-25 16:08:44 +02:00
parent 0054413e89
commit a2ad876517
3 changed files with 78 additions and 18 deletions

View File

@@ -54,10 +54,19 @@
android:id="@+id/instance_url_input"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/instance_url" />
android:hint="@string/instance_url"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/login_instance_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:layout_marginRight="3dp"
android:text="The URL of you prefered Lemmy instance with or without the https:// prefix" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -67,7 +76,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/afs_md2_popup_margin_end"
android:hint="@string/user_username" />
android:hint="@string/user_username"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
@@ -80,6 +90,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user_password"
android:maxLines="1"
android:password="true" />
</com.google.android.material.textfield.TextInputLayout>
@@ -92,7 +103,8 @@
android:id="@+id/user_2fa_token_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user_2fa_token" />
android:hint="@string/user_2fa_token"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<Button
@@ -101,6 +113,13 @@
android:layout_height="wrap_content"
android:text="@string/user_login" />
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>

View File

@@ -1326,6 +1326,7 @@
<string name="reddit_api_info">Starting from July 1st, 2023, Reddit API will be pay-per-use for 3rd-party clients, which include Infinity for Reddit. The announcement from Reddit can be found here: %1$s\n\nIn order to survive this change, Infinity will become a subscription-only app after July 1st. You can learn more about the changes in this post: %2$s\n\nIt\'s required for you to update Infinity after July 1st so that you will get the new version with subscription options. None of the previous versions (including this one) will work after July 1st. But due to a tight timeline Reddit gave, the update may not be available immediately on July 1st since it requires proper testing. Thank you for your understanding!</string>
<string name="i_understand">I understand</string>
<string name="instance_url">Instance URL</string>
<string name="instance_url_hint">The URL of you preferred Lemmy instance with or without the https:// prefix</string>
<string name="user_username">Username</string>
<string name="user_password">Password</string>
<string name="user_2fa_token">2FA token (if needed)</string>