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

  Copyright (C) 2017 Andy Scherzinger

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  License as published by the Free Software Foundation; either
  version 3 of the License, or 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/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/bg_default"
    android:orientation="horizontal"
    android:paddingLeft="@dimen/standard_padding"
    android:paddingRight="@dimen/standard_padding"
    android:paddingBottom="@dimen/standard_padding">

    <ImageView
        android:id="@+id/icon"
        android:layout_width="@dimen/activity_icon_width"
        android:layout_height="@dimen/activity_icon_height"
        android:layout_alignParentTop="true"
        android:layout_marginTop="@dimen/standard_margin"
        android:alpha="0.5"
        android:contentDescription="@string/activity_icon"
        android:padding="2dp"
        android:src="@drawable/ic_activity" />

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

        <TextView
            android:id="@+id/subject"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
            android:paddingTop="@dimen/standard_padding"
            android:paddingEnd="@dimen/zero"
            android:textAppearance="?android:attr/textAppearanceListItem"
            android:textSize="@dimen/two_line_primary_text_size"
            tools:text="@string/placeholder_filename" />

        <TextView
            android:id="@+id/message"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
            android:paddingEnd="@dimen/zero"
            android:textAppearance="?android:attr/textAppearanceListItem"
            android:textSize="@dimen/two_line_primary_text_size"
            tools:text="@string/placeholder_sentence" />

        <GridLayout
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/activity_list_item_grid_layout_left_start_margin"
            android:layout_marginTop="@dimen/alternate_half_margin"
            android:columnCount="3"
            android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
            android:paddingEnd="@dimen/zero" />

        <TextView
            android:id="@+id/datetime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end"
            android:ellipsize="end"
            android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
            android:paddingEnd="@dimen/zero"
            android:textColor="?android:attr/textColorSecondary"
            android:textSize="@dimen/two_line_primary_text_size"
            tools:text="@string/placeholder_sentence" />

    </LinearLayout>

</RelativeLayout>
