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

73 lines
2.8 KiB
XML
Raw Normal View History

2015-10-01 18:54:20 +03:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-04-17 18:01:27 +03:00
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"
2018-04-11 16:40:33 +03:00
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin">
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"
2018-04-11 16:40:33 +03:00
android:layout_marginTop="@dimen/activity_vertical_margin"
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" />
</LinearLayout>