<?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"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="20dp"
    android:layout_marginTop="6dp"
    android:layout_marginEnd="20dp"
    android:layout_marginBottom="6dp"
    app:cardCornerRadius="25dp"
    app:cardElevation="3dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/category_hopper_layout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="?colorAccent"
        android:clickable="true"
        android:focusable="true">

        <ImageButton
            android:id="@+id/up_category"
            style="@style/Theme.Widget.ImageBorderless"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="6dp"
            android:contentDescription="@string/previous_title"
            android:padding="8dp"
            android:src="@drawable/ic_expand_less_24dp"
            app:tint="?attr/colorOnAccent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@id/category_button"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <ImageButton
            android:id="@+id/category_button"
            style="@style/Theme.Widget.ImageBorderless"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/categories"
            android:padding="8dp"
            android:src="@drawable/ic_label_outline_24dp"
            app:tint="?attr/colorOnAccent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@id/down_category"
            app:layout_constraintStart_toEndOf="@id/up_category"
            app:layout_constraintTop_toTopOf="parent" />

        <ImageButton
            android:id="@+id/down_category"
            style="@style/Theme.Widget.ImageBorderless"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="6dp"
            android:contentDescription="@string/next_title"
            android:padding="8dp"
            android:src="@drawable/ic_expand_more_24dp"
            app:tint="?attr/colorOnAccent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/category_button"
            app:layout_constraintTop_toTopOf="parent" />
    </androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
