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

132 lines
6.5 KiB
XML
Raw Normal View History

2019-04-18 09:54:32 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<View
android:id="@+id/touch_outside"
android:layout_width="match_parent"
android:layout_height="match_parent" />
2021-02-23 10:49:59 +00:00
<LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
2019-04-18 09:54:32 +00:00
android:id="@+id/bottom_sheet"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
app:behavior_peekHeight="350dp"
2021-06-04 14:11:48 +00:00
app:behavior_hideable="true">
2021-02-23 10:49:59 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp">
2019-04-18 09:54:32 +00:00
2021-02-23 10:49:59 +00:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
2019-04-18 09:54:32 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-23 10:49:59 +00:00
android:minHeight="?attr/actionBarSize"
android:theme="@style/Toolbar"
app:title=""
android:background="@color/content_background"
app:layout_scrollFlags="scroll|enterAlways"
app:titleTextColor="@color/text_primary"
app:theme="@style/ReportMessageToolbar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark">
<ImageButton
android:id="@+id/close_button"
android:layout_width="wrap_content"
2019-04-18 09:54:32 +00:00
android:layout_height="wrap_content"
2021-02-23 10:49:59 +00:00
android:src="@drawable/ic_close_grey_800_24dp"
android:background="@color/transparent"
android:paddingEnd="@dimen/spacing_small"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report_violation"
android:textSize="20sp"
android:textColor="@color/text_primary"
android:layout_marginEnd="36dp"
android:id="@+id/toolbar_title" />
<Button
android:id="@+id/report_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report"
android:textColor="@color/red_50"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_marginEnd="8dp"
android:layout_gravity="end" />
</androidx.appcompat.widget.Toolbar>
2019-04-18 09:54:32 +00:00
2021-02-23 10:49:59 +00:00
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="0dp">
2019-04-18 09:54:32 +00:00
<LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="16dp"
2020-09-17 11:47:02 +00:00
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingBottom="25dp"
2019-04-25 08:06:56 +00:00
android:layout_marginBottom="0dp"
android:focusableInTouchMode="true">
2019-04-18 09:54:32 +00:00
<TextView
android:id="@+id/title_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Report NAME for violation:"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"
2019-04-24 08:17:24 +00:00
style="@style/Caption1"
2019-04-18 09:54:32 +00:00
android:layout_marginBottom="@dimen/spacing_medium"
2019-04-24 08:17:24 +00:00
android:layout_marginStart="13dp"/>
2019-04-18 09:54:32 +00:00
<TextView
android:id="@+id/message_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/border_1f000000"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad"
2019-04-24 08:17:24 +00:00
style="@style/Body2"
android:lineSpacingExtra="4sp"
android:paddingTop="11dp"
android:paddingBottom="11dp"
android:paddingStart="13dp"
android:paddingEnd="13dp"
2019-04-18 09:54:32 +00:00
tools:text="This is the message that is reported" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-04-26 08:28:06 +00:00
android:theme="@style/TextInputLayoutAppearanceTheme"
2019-04-18 09:54:32 +00:00
style="@style/TextInputLayoutAppearance"
android:layout_marginTop="@dimen/spacing_large"
2021-05-18 08:41:05 +00:00
android:hint="@string/reason_for_report"
2019-04-18 09:54:32 +00:00
android:layout_marginBottom="@dimen/spacing_large">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
2019-04-18 09:54:32 +00:00
android:id="@+id/additional_info_edittext"
android:overScrollMode="always"
2019-04-18 09:54:32 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"
2019-04-26 08:28:06 +00:00
android:paddingBottom="34dp"
android:paddingTop="16dp"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"/>
2019-04-18 09:54:32 +00:00
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/report_explanation_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
tools:text="@string/report_explanation"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_ternary"
2019-04-24 08:17:24 +00:00
style="@style/Caption3"
2019-08-07 08:29:58 +00:00
android:textColorLink="?colorAccent"
2019-04-18 09:54:32 +00:00
/>
</LinearLayout>
2021-02-23 10:49:59 +00:00
</androidx.core.widget.NestedScrollView>
</LinearLayout>
2019-04-18 09:54:32 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>