habitica-android/Habitica/res/layout/activity_group_form.xml

131 lines
6 KiB
XML
Raw Normal View History

2016-03-05 13:54:19 +00:00
<?xml version="1.0" encoding="utf-8"?>
2021-01-26 15:49:46 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2016-03-05 13:54:19 +00:00
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"
2021-06-04 14:11:48 +00:00
xmlns:tools="http://schemas.android.com/tools">
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"
2021-01-26 15:49:46 +00:00
android:paddingBottom="20dp">
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"
2019-03-05 12:14:42 +00:00
style="@style/Base.Widget.AppCompat.Button.Borderless"
2021-06-04 14:11:48 +00:00
android:contentDescription="@string/cancel"
app:tint="?colorPrimary" />
2019-03-05 12:14:42 +00:00
<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"
2021-05-18 08:41:05 +00:00
android:hint="@string/name"
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
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"
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"
2021-05-18 08:41:05 +00:00
android:hint="@string/description"
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
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:maxHeight="250dp"
2016-03-05 13:54:19 +00:00
android:layout_gravity="center_horizontal"
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"
2021-01-26 15:49:46 +00:00
android:minLines="3"
android:scrollbars="vertical"/>
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>
2021-01-26 15:49:46 +00:00
</FrameLayout>