Add scrollbar to Nextcloud login dialog (#6838)

This commit is contained in:
satish-vanjara 2024-01-01 17:10:43 +05:30 committed by GitHub
parent c81157f0e6
commit de8bc4ad30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 61 additions and 55 deletions

View File

@ -1,69 +1,75 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:padding="16dp"
android:orientation="vertical"
android:clipToPadding="false">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/synchronization_host_explanation" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/serverUrlTextInput"
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
android:id="@+id/serverUrlText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/synchronization_host_label"
android:inputType="textNoSuggestions"
android:lines="1"
android:imeOptions="actionNext|flagNoFullscreen" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout <LinearLayout
android:id="@+id/loginProgressContainer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" android:padding="16dp"
android:orientation="horizontal" android:orientation="vertical"
android:layout_gravity="center_vertical"> android:clipToPadding="false">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/synchronization_nextcloud_authenticate_browser" /> android:layout_marginBottom="16dp"
android:text="@string/synchronization_host_explanation" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/serverUrlTextInput"
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
android:id="@+id/serverUrlText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/synchronization_host_label"
android:inputType="textNoSuggestions"
android:lines="1"
android:imeOptions="actionNext|flagNoFullscreen" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:id="@+id/loginProgressContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="horizontal"
android:layout_gravity="center_vertical">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/synchronization_nextcloud_authenticate_browser" />
</LinearLayout>
<TextView
android:id="@+id/errorText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:textColor="?attr/icon_red"
android:layout_marginBottom="16dp" />
<Button
android:id="@+id/chooseHostButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/proceed_to_login_butLabel" />
</LinearLayout> </LinearLayout>
<TextView </ScrollView>
android:id="@+id/errorText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:textColor="?attr/icon_red"
android:layout_marginBottom="16dp" />
<Button
android:id="@+id/chooseHostButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/proceed_to_login_butLabel" />
</LinearLayout>