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

147 lines
6.8 KiB
XML
Raw Normal View History

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-09-04 16:17:34 +00:00
android:background="@color/window_background">
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"
android:paddingTop="30dp"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
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"
android:src="@drawable/ic_close_purple_300_24dp"
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"
2019-08-07 08:29:58 +00:00
android:textColor="?colorAccent"
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"
android:layout_height="match_parent"
2019-03-05 12:14:42 +00:00
app:hintTextAppearance="@style/TextAppearance.AppCompat"
android:layout_marginTop="@dimen/spacing_small"
android:layout_marginLeft="@dimen/spacing_large"
android:layout_marginRight="@dimen/spacing_large"
android:background="@drawable/edittext"
2020-09-04 16:17:34 +00:00
android:textColorHint="@color/text_primary">
2019-03-13 13:41:25 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaAutocompleteTextView
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"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"
2019-03-05 12:14:42 +00:00
android:inputType="textCapSentences"
android:background="@color/transparent"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_large"
android:paddingTop="20dp"
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"
android:layout_height="match_parent"
2019-03-05 12:14:42 +00:00
app:hintTextAppearance="@style/TextAppearance.AppCompat"
android:layout_marginTop="@dimen/spacing_large"
android:layout_marginLeft="@dimen/spacing_large"
android:layout_marginRight="@dimen/spacing_large"
android:background="@drawable/edittext"
2020-09-04 16:17:34 +00:00
android:textColorHint="@color/text_primary">
2016-03-05 13:54:19 +00:00
2019-03-13 13:41:25 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaAutocompleteTextView
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"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"
2019-03-05 12:14:42 +00:00
android:inputType="textCapSentences|textMultiLine"
android:background="@color/transparent"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_large"
android:paddingTop="20dp"
2020-09-04 16:17:34 +00:00
android:textColorHint="@color/text_primary"
2019-03-05 12:14:42 +00:00
android:minLines="3"
android:gravity="top" />
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"
android:layout_marginLeft="@dimen/spacing_large"
android:layout_marginRight="@dimen/spacing_large">
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/only_leader_create_challenge"/>
<Switch
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"
android:layout_marginLeft="@dimen/spacing_large"
android:layout_marginRight="@dimen/spacing_large"
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>
2019-03-05 12:14:42 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#1e000000"
android:layout_marginTop="@dimen/spacing_medium" />
2016-03-05 13:54:19 +00:00
</LinearLayout>
</ScrollView>