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

147 lines
6.7 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"
android:background="@color/gray_700">
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"
android:background="@color/white">
<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"
android:textColorHint="@color/gray_50">
2019-03-13 13:41:25 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaAutocompleteTextView
2016-03-06 15:49:35 +00:00
android:id="@+id/group_name_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/name"
android:textColor="@android:color/black"
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"
android:textColorHint="@color/gray_50"
/>
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"
android:textColorHint="@color/gray_50">
2016-03-05 13:54:19 +00:00
2019-03-13 13:41:25 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaAutocompleteTextView
2016-03-05 13:54:19 +00:00
android:id="@+id/group_description_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/description"
android:textColor="@android:color/black"
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"
android:textColorHint="@color/gray_50"
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>