<?xml version="1.0" encoding="utf-8"?>
<!--
    Nextcloud Android client application

    @author Chris Narkiewicz
    Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!--
    This is a generic, single row list item matching Material Design specification.
-->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    style="@style/MaterialListItemSingleLine">

    <androidx.appcompat.widget.AppCompatImageView
        style="@style/MaterialListItemPrimaryAction"
        android:id="@+id/primary_action"
        tools:src="@drawable/ic_alert"/>

    <TextView
        android:id="@+id/text"
        android:layout_gravity="center_vertical"
        android:layout_width="0dip"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:lines="1"
        android:ellipsize="end"
        android:textColor="?android:attr/textColorPrimary"
        tools:text="Single line of text"/>

    <androidx.appcompat.widget.AppCompatImageView
        style="@style/MaterialListItemSecondaryAction"
        android:id="@+id/secondary_action"
        tools:src="@drawable/ic_alert"/>

</LinearLayout>
