2016-03-05 13:54:19 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-10-27 16:00:40 +00:00
|
|
|
android:background="?attr/colorContentBackground">
|
2016-03-05 13:54:19 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-27 16:00:40 +00:00
|
|
|
android:paddingTop="30dp">
|
2019-03-05 12:14:42 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/cancel_button"
|
|
|
|
|
android:layout_width="50dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:src="@drawable/ic_close_white_24dp"
|
|
|
|
|
android:tint="?colorPrimary"
|
2019-03-05 12:14:42 +00:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
|
|
|
android:contentDescription="@string/cancel" />
|
|
|
|
|
<Space
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/save_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/create"
|
2019-05-21 10:28:16 +00:00
|
|
|
style="@style/HabiticaButton.Borderless"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:textColor="?colorPrimary"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:paddingEnd="@dimen/spacing_large"
|
|
|
|
|
android:paddingStart="@dimen/spacing_large"
|
|
|
|
|
android:minWidth="20dp"/>
|
|
|
|
|
</LinearLayout>
|
2018-11-06 15:11:02 +00:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2016-03-06 15:49:35 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-05 12:14:42 +00:00
|
|
|
app:hintTextAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_small"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColorHint="@color/text_primary">
|
2020-11-19 15:58:18 +00:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/group_name_edit_text"
|
2016-03-06 15:49:35 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:hint="@string/name"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:inputType="textCapSentences"
|
|
|
|
|
android:paddingStart="@dimen/spacing_large"
|
|
|
|
|
android:paddingEnd="@dimen/spacing_large"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColorHint="@color/text_secondary"
|
2019-03-05 12:14:42 +00:00
|
|
|
/>
|
2018-11-06 15:11:02 +00:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2016-03-06 15:49:35 +00:00
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2016-03-05 13:54:19 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-05 12:14:42 +00:00
|
|
|
app:hintTextAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_large"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColorHint="@color/text_primary">
|
2016-03-05 13:54:19 +00:00
|
|
|
|
2020-11-19 15:58:18 +00:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/group_description_edit_text"
|
2016-03-05 13:54:19 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:hint="@string/description"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:inputType="textCapSentences|textMultiLine"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColorHint="@color/text_primary"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:gravity="top"
|
|
|
|
|
android:minLines="3" />
|
2018-11-06 15:11:02 +00:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2016-03-06 15:49:35 +00:00
|
|
|
|
2019-03-05 12:14:42 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_large"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large">
|
2019-03-05 12:14:42 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/only_leader_create_challenge"/>
|
2020-09-15 07:28:34 +00:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2019-03-05 12:14:42 +00:00
|
|
|
android:id="@+id/leader_create_challenge_switch"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/privacy_separator"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:background="#1e000000"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_medium"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"
|
|
|
|
|
tools:visibility="gone" />
|
2016-03-06 15:49:35 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:id="@+id/privacyWrapper"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
2019-03-05 12:14:42 +00:00
|
|
|
tools:visibility="gone">
|
2016-03-06 15:49:35 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/privacy"
|
|
|
|
|
android:layout_gravity="center_vertical" />
|
|
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:id="@+id/privacySpinner" />
|
|
|
|
|
</LinearLayout>
|
2016-03-05 13:54:19 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|