nextcloud-notes-android/app/src/main/res/layout/activity_settings.xml

119 lines
4.2 KiB
XML
Raw Normal View History

2015-10-01 18:54:20 +03:00
<?xml version="1.0" encoding="utf-8"?>
2017-04-17 18:01:27 +03:00
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2015-10-01 18:54:20 +03:00
android:layout_width="match_parent"
2015-10-22 23:01:58 +03:00
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp">
2015-10-01 18:54:20 +03:00
2017-04-23 01:27:06 +03:00
<TextView
android:id="@+id/settings_server_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_server_header"
android:textSize="18sp"
android:textStyle="bold" />
2015-10-01 18:54:20 +03:00
<android.support.design.widget.TextInputLayout
android:id="@+id/settings_url_wrapper"
2015-10-22 23:01:58 +03:00
android:layout_width="match_parent"
2015-10-01 18:54:20 +03:00
android:layout_height="wrap_content"
2016-01-21 22:48:39 +03:00
android:layout_marginTop="8dp">
2015-10-01 18:54:20 +03:00
<EditText
android:id="@+id/settings_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/settings_url"
2015-10-22 23:01:58 +03:00
android:inputType="textUri" />
2015-10-01 18:54:20 +03:00
</android.support.design.widget.TextInputLayout>
<TextView
2015-10-22 23:01:58 +03:00
android:id="@+id/settings_url_warn_http"
2015-10-01 18:54:20 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/bg_attention"
android:padding="8dp"
2015-10-01 18:54:20 +03:00
android:text="@string/settings_url_warn_http"
android:textColor="@color/fg_contrast"
2015-10-22 23:01:58 +03:00
android:visibility="gone" />
2015-10-01 18:54:20 +03:00
<android.support.design.widget.TextInputLayout
android:id="@+id/settings_username_wrapper"
2015-10-22 23:01:58 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2015-10-01 18:54:20 +03:00
<EditText
android:id="@+id/settings_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/settings_username"
android:inputType="text" />
2015-10-01 18:54:20 +03:00
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/settings_password_wrapper"
2015-10-22 23:01:58 +03:00
android:layout_width="match_parent"
2017-04-17 18:01:27 +03:00
android:layout_height="wrap_content"
app:passwordToggleEnabled="true"
>
2015-10-01 18:54:20 +03:00
<EditText
android:id="@+id/settings_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/settings_password"
2015-10-22 23:01:58 +03:00
android:inputType="textPassword" />
2015-10-01 18:54:20 +03:00
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/settings_submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10pt"
2015-10-01 18:54:20 +03:00
android:shadowColor="@color/fg_default_low"
2015-10-22 23:01:58 +03:00
android:text="@string/settings_submit" />
2017-04-23 01:27:06 +03:00
<TextView
android:id="@+id/settings_notification_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:text="@string/settings_notification_header"
android:textSize="18sp"
android:textStyle="bold" />
<CheckBox
android:id="@+id/settings_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:key="notificationCheckbox"
android:text="@string/settings_notification" />
2017-04-23 01:27:06 +03:00
<TextView
android:id="@+id/settings_cert_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:text="@string/settings_cert_header"
android:textSize="18sp"
android:textStyle="bold" />
<CheckBox
android:id="@+id/settings_cert_trust_system"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_cert_trust_system" />
<Button
android:id="@+id/settings_cert_reset"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_cert_reset" />
</LinearLayout>