<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    style="?attr/materialCardViewFilledStyle"
    app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.Full"
    tools:ignore="UnusedAttribute">

    <org.breezyweather.ui.common.widgets.slidingItem.SlidingItemContainerLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:foreground="@drawable/selectable_item_background"
        tools:ignore="UnusedAttribute">

        <LinearLayout
            android:id="@+id/item"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?attr/colorSurface"
            android:orientation="horizontal"
            android:gravity="center_vertical">

            <androidx.appcompat.widget.AppCompatImageButton
                android:id="@+id/sort_button"
                android:src="@drawable/ic_drag"
                android:tint="?attr/colorPrimary"
                android:layout_margin="0dp"
                android:contentDescription="@string/settings_items_drag_to_sort"
                style="@style/material_image_button"
                tools:ignore="ContentDescription" />

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

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/normal_margin"
                    android:layout_marginBottom="@dimen/normal_margin"
                    android:layout_marginEnd="@dimen/normal_margin"
                    tools:ignore="UseCompoundDrawables">

                    <ImageView
                        android:id="@+id/weather_icon"
                        android:layout_width="@dimen/small_weather_icon_size"
                        android:layout_height="@dimen/small_weather_icon_size"
                        android:layout_marginEnd="@dimen/small_margin"
                        android:layout_centerVertical="true"
                        tools:src="@drawable/weather_clear_day"
                        tools:ignore="ContentDescription" />

                    <androidx.appcompat.widget.LinearLayoutCompat
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_toEndOf="@id/weather_icon"
                        android:orientation="vertical">

                        <TextView
                            android:id="@+id/title1"
                            android:layout_width="match_parent"
                            android:maxLines="1"
                            android:ellipsize="end"
                            android:textAlignment="viewStart"
                            android:textColor="?attr/colorTitleText"
                            style="@style/title_text"
                            tools:text="Current Location"
                            tools:ignore="RtlHardcoded" />

                        <TextView
                            android:id="@+id/title2"
                            android:layout_width="match_parent"
                            android:maxLines="1"
                            android:ellipsize="end"
                            android:textAlignment="viewStart"
                            android:textColor="?attr/colorBodyText"
                            style="@style/content_text"
                            tools:text="France, Ain"
                            tools:ignore="RtlHardcoded" />

                    </androidx.appcompat.widget.LinearLayoutCompat>

                </RelativeLayout>

            </LinearLayout>

        </LinearLayout>

    </org.breezyweather.ui.common.widgets.slidingItem.SlidingItemContainerLayout>

</com.google.android.material.card.MaterialCardView>
