<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
	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="wrap_content">

	<LinearLayout
		android:id="@+id/text_input_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:gravity="center_horizontal"
		android:orientation="vertical"
		android:paddingLeft="@dimen/edittext_padding"
		android:paddingRight="@dimen/edittext_padding"
		android:paddingTop="@dimen/dialog_margin_below_title">

		<TextView
			android:id="@+id/intro_text"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_marginBottom="4dp"
			android:layout_marginLeft="2dp"
			android:layout_marginRight="2dp"
			android:text="@string/rate_intro"
			android:textSize="16sp"/>

		<LinearLayout
			android:id="@+id/star_layout"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:foreground="?attr/selectableItemBackground"
			android:gravity="center"
			android:orientation="horizontal"
			android:paddingBottom="4dp"
			android:paddingTop="4dp">

			<ImageView
				android:id="@+id/star_one"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:padding="2dp"
				android:layout_marginRight="6dp"
				android:background="?attr/selectableItemBackground"
				android:clickable="true"
				app:srcCompat="@drawable/ic_star_outline_24dp"/>

			<ImageView
				android:id="@+id/star_two"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:padding="2dp"
				android:layout_marginRight="6dp"
				android:background="?attr/selectableItemBackground"
				android:clickable="true"
				app:srcCompat="@drawable/ic_star_outline_24dp"/>

			<ImageView
				android:id="@+id/star_three"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:padding="2dp"
				android:layout_marginRight="6dp"
				android:background="?attr/selectableItemBackground"
				android:clickable="true"
				app:srcCompat="@drawable/ic_star_outline_24dp"/>

			<ImageView
				android:id="@+id/star_four"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:padding="2dp"
				android:layout_marginRight="6dp"
				android:background="?attr/selectableItemBackground"
				android:clickable="true"
				app:srcCompat="@drawable/ic_star_outline_24dp"/>

			<ImageView
				android:id="@+id/star_five"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:padding="2dp"
				android:background="?attr/selectableItemBackground"
				android:clickable="true"
				app:srcCompat="@drawable/ic_star_outline_24dp"/>

		</LinearLayout>

		<LinearLayout
			android:id="@+id/feedback_layout"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:orientation="vertical"
			android:visibility="gone">

			<TextView
				android:id="@+id/feedback_intro_text"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginLeft="2dp"
				android:layout_marginRight="2dp"
				android:layout_marginTop="4dp"
				android:text="@string/rate_feedback_intro"
				android:textSize="16sp"/>

			<com.google.android.material.textfield.TextInputLayout
				android:id="@+id/feedback_edittext_layout"
				style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginBottom="-2dp"
				android:layout_marginTop="-2dp"
				app:counterEnabled="true"
				app:counterMaxLength="400">

				<ch.threema.app.ui.ThreemaTextInputEditText
					android:id="@+id/feedback_edittext"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					android:maxLength="400"
					android:maxLines="3"
					android:minHeight="@dimen/input_text_height"
					android:scrollHorizontally="false"
					android:textSize="16sp"/>

			</com.google.android.material.textfield.TextInputLayout>

		</LinearLayout>

	</LinearLayout>

	<ProgressBar
		android:id="@+id/progress_bar"
		android:layout_width="48dp"
		android:layout_height="48dp"
		android:indeterminate="true"
		android:layout_gravity="center"
		android:visibility="gone"/>

</FrameLayout>
