<?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:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/logContainer">

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

        <ImageView
            android:id="@+id/logIcon"
            android:layout_width="35dp"
            android:layout_height="wrap_content"
            android:src="@drawable/task_highpriority"
            android:layout_gravity="center_vertical"
            android:padding="2dp" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <androidx.cardview.widget.CardView
                android:id="@+id/taskHeader"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:cardCornerRadius="10dp"
                app:contentPadding="5dp"
                app:cardElevation="@dimen/card_shadow"
                android:layout_margin="@dimen/card_margin"
                app:cardBackgroundColor="@color/fontColorWhite">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="0.3">

                        <TextView
                            android:id="@+id/taskName"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:paddingBottom="5dp"
                            android:text="Sample Name"
                            android:textAppearance="?android:attr/textAppearanceSmall"
                            android:drawableLeft="@drawable/ic_person_color"
                            android:drawablePadding="5dp" />

                        <TextView
                            android:id="@+id/taskForm"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:paddingBottom="5dp"
                            android:text="Sample Form"
                            android:textAppearance="?android:attr/textAppearanceSmall"
                            android:drawableLeft="@drawable/ic_form_color"
                            android:drawablePadding="5dp" />

                        <TextView
                            android:id="@+id/taskCollResult"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:text="@string/collection_result"
                            android:visibility="gone"
                            android:textAppearance="?android:attr/textAppearanceSmall"
                            android:drawableLeft="@drawable/ic_coll_result"
                            android:drawablePadding="5dp" />
                    </LinearLayout>

                    <TextView
                        android:id="@+id/txtTime"
                        android:layout_width="90dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="0"
                        android:text="17/07/2017 \n 13:00"
                        android:layout_gravity="center|end"
                        android:gravity="end"
                        android:textAlignment="textEnd"
                        android:textSize="10dp" />

                    <ImageView
                        android:id="@+id/imgPrint"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="0.7"
                        android:layout_gravity="center"
                        android:src="@drawable/ic_print"
                        android:visibility="gone"/>
                </LinearLayout>
            </androidx.cardview.widget.CardView>
        </LinearLayout>
    </LinearLayout>
</RelativeLayout>