123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center_horizontal"
- android:orientation="vertical"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context=".LoginActivity">
- <!-- Login progress -->
- <ProgressBar
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:visibility="gone" />
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/LoginSettingsLabel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/login_settings_header" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/triliumAddressEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prompt_trilium_address"
- android:inputType="textUri"
- android:maxLines="1"
- android:importantForAutofill="no"
- android:singleLine="true" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/usernameEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prompt_username"
- android:inputType="text"
- android:maxLines="1"
- android:autofillHints="username"
- android:singleLine="true" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/passwordEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prompt_password"
- android:imeActionId="6"
- android:imeActionLabel="@string/action_login_short"
- android:imeOptions="actionUnspecified"
- android:inputType="textPassword"
- android:maxLines="1"
- android:autofillHints="password"
- android:singleLine="true" />
- </com.google.android.material.textfield.TextInputLayout>
- <Button
- android:id="@+id/loginButton"
- style="?android:textAppearanceSmall"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/action_login"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/loggedInIndicator"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/logged_in_successfully" />
- <TextView
- android:id="@+id/NoteSettingsLabel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/note_settings_header" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/labelEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prompt_label"
- android:importantForAutofill="no"
- android:inputType="text"
- android:maxLines="1"
- android:singleLine="true" />
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- </ScrollView>
- </LinearLayout>
|