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

67 lines
2.5 KiB
XML
Raw Normal View History

2015-10-01 18:54:20 +03:00
<?xml version="1.0" encoding="utf-8"?>
2015-10-22 23:01:58 +03:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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
<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"
2015-10-22 23:01:58 +03:00
android:layout_marginTop="@dimen/default_gap">
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"
android:layout_height="wrap_content">
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:shadowColor="@color/fg_default_low"
2015-10-22 23:01:58 +03:00
android:text="@string/settings_submit" />
</LinearLayout>