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

152 lines
7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/bottom_sheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:behavior_hideable="true">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="50dp"
app:elevation="0dp">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorContentBackground"
android:minHeight="?attr/actionBarSize"
android:theme="@style/Toolbar"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"
app:theme="@style/ReportMessageToolbar"
app:title=""
app:titleTextColor="@color/text_primary">
<ImageButton
android:id="@+id/close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:paddingEnd="@dimen/spacing_small"
android:src="@drawable/ic_close_grey_800_24dp" />
<TextView
android:id="@+id/toolbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="36dp"
android:text="@string/report_violation"
android:textColor="@color/text_primary"
android:textSize="20sp" />
<Button
android:id="@+id/report_button"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginEnd="8dp"
android:text="@string/report"
android:textColor="@color/red_50" />
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="0dp"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingTop="16dp"
android:paddingEnd="24dp"
android:paddingBottom="25dp">
<TextView
android:id="@+id/title_text_view"
style="@style/Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="13dp"
android:layout_marginBottom="@dimen/spacing_medium"
android:textColor="@color/text_primary"
tools:text="Report NAME for violation:" />
<TextView
android:id="@+id/message_text_view"
style="@style/Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/border_1f000000"
android:lineSpacingExtra="4sp"
android:paddingStart="13dp"
android:paddingTop="11dp"
android:paddingEnd="13dp"
android:paddingBottom="11dp"
android:textColor="@color/text_quad"
tools:text="This is the message that is reported" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/info_text_input_layout"
style="@style/TextInputLayoutAppearance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_large"
android:layout_marginBottom="@dimen/spacing_large"
android:hint="@string/report_message_hint"
android:theme="@style/TextInputLayoutAppearanceTheme">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/additional_info_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="always"
android:paddingStart="@dimen/spacing_large"
android:paddingTop="16dp"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="34dp"
android:textColor="@color/text_primary" />
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/additional_explanation_textview"
style="@style/Caption3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/spacing_medium"
android:gravity="center"
android:textColor="@color/text_ternary"
android:textColorLink="?colorAccent"
android:textStyle="italic"
android:visibility="gone"
tools:text="@string/report_user_description" />
<TextView
android:id="@+id/report_explanation_textview"
style="@style/Caption3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/text_ternary"
android:textColorLink="?colorAccent"
tools:text="@string/report_message_explanation" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>