android:textIsSelectable="true"
tools:context=".ui.profiles.ProfileDetailFragment">
- <LinearLayout
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/profile_name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Profile name" />
+ android:layout_marginBottom="16dp">
- <EditText
+ <android.support.design.widget.TextInputEditText
android:id="@+id/profile_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
- android:inputType="textPersonName"
- android:text="Name" />
- </LinearLayout>
+ android:hint="@string/profile_name_label"
+ android:inputType="textPersonName" />
+ </android.support.design.widget.TextInputLayout>
- <LinearLayout
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/url_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="URL" />
-
- <EditText
+ <android.support.design.widget.TextInputEditText
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
+ android:hint="@string/url_label"
android:inputType="textUri"
- android:text="https://server/url" />
- </LinearLayout>
+ android:text="@string/pref_default_backend_url" />
+ </android.support.design.widget.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
+ <Switch
+ android:id="@+id/profile_permit_posting"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:text="@string/posting_permitted" />
+
<Switch
android:id="@+id/enable_http_auth"
android:layout_width="match_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:paddingStart="8dp">
+ android:paddingStart="8dp"
+ tools:ignore="RtlSymmetry">
- <LinearLayout
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/auth_user_name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/pref_title_backend_auth_user" />
-
- <EditText
+ <android.support.design.widget.TextInputEditText
android:id="@+id/auth_user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
- android:inputType="textPersonName"
- android:text="Name" />
- </LinearLayout>
+ android:hint="@string/pref_title_backend_auth_user"
+ android:inputType="textPersonName" />
+ </android.support.design.widget.TextInputLayout>
- <LinearLayout
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/password_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/pref_title_backend_auth_password" />
-
- <EditText
+ <android.support.design.widget.TextInputEditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
+ android:hint="@string/pref_title_backend_auth_password"
android:inputType="textPassword" />
- </LinearLayout>
+ </android.support.design.widget.TextInputLayout>
</LinearLayout>