diff options
author | steckbrief <steckbrief@chefmail.de> | 2018-11-26 23:56:45 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2018-11-26 23:56:45 +0100 |
commit | 9a16c9609610bd9dd7969cdc9048724ccfbdffdc (patch) | |
tree | 4020c7d5996fbad85126e45c0c01bb1e034bcc89 /app/src/main/res/layout |
first version of NextcloudShareBookmark
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_nextcloud_preferences.xml | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_nextcloud_preferences.xml b/app/src/main/res/layout/activity_nextcloud_preferences.xml new file mode 100644 index 0000000..eff8ce5 --- /dev/null +++ b/app/src/main/res/layout/activity_nextcloud_preferences.xml @@ -0,0 +1,101 @@ +<?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=".activities.NextcloudPreferencesActivity"> + + <!-- Login progress --> + <ProgressBar + android:id="@+id/login_progress" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:visibility="gone" + android:tooltipText="@string/prompt_checking_credentials"/> + + <!-- Credentials form --> + <ScrollView + android:id="@+id/login_form" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:id="@+id/email_login_form" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="match_parent" + android:layout_height="66dp" + android:paddingTop="5dp" + android:text="@string/server_settings_description" /> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/serverUrl" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/prompt_serverUrl" + android:inputType="textUri" + android:maxLines="1" + android:singleLine="true" /> + + </android.support.design.widget.TextInputLayout> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/prompt_username" + android:inputType="text" + android:maxLines="1" + android:singleLine="true" /> + + </android.support.design.widget.TextInputLayout> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/prompt_password" + android:imeActionId="6" + android:imeActionLabel="@string/action_save_credentials_short" + android:imeOptions="actionUnspecified" + android:inputType="textPassword" + android:maxLines="1" + android:singleLine="true" /> + + </android.support.design.widget.TextInputLayout> + + <Button + android:id="@+id/sign_in_button" + style="?android:textAppearanceSmall" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/action_save_credentials" + android:textStyle="bold" /> + + </LinearLayout> + </ScrollView> +</LinearLayout>
\ No newline at end of file |