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

	<HorizontalScrollView
		android:id="@+id/scrollView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentStart="true"
		android:layout_centerVertical="true"
		android:layout_marginEnd="@dimen/margin_small"
		android:layout_toStartOf="@id/textView_filter"
		android:requiresFadingEdge="horizontal"
		android:scrollbars="none">

		<org.koitharu.kotatsu.base.ui.widgets.ChipsView
			android:id="@+id/chips_tags"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:paddingVertical="@dimen/margin_small"
			app:selectionRequired="false"
			app:singleLine="true"
			app:singleSelection="false" />

	</HorizontalScrollView>

	<TextView
		android:id="@+id/textView_filter"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentEnd="true"
		android:layout_centerVertical="true"
		android:background="@drawable/list_selector"
		android:gravity="center_vertical"
		android:paddingStart="6dp"
		android:singleLine="true"
		android:textAppearance="@style/TextAppearance.Kotatsu.SectionHeader"
		app:drawableEndCompat="@drawable/ic_expand_more"
		app:drawableTint="?android:attr/textColorSecondary"
		tools:ignore="RtlSymmetry"
		tools:text="@string/popular" />

</RelativeLayout>