<?xml version="1.0" encoding="UTF-8"?>
<!--
  ownCloud Android client application
  Copyright (C) 2015 ownCloud Inc.

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2,
  as published by the Free Software Foundation.

  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 General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/ListItemLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center_horizontal"
    android:background="@drawable/list_selector"
    android:gravity="center_horizontal"
    android:orientation="vertical">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

        <com.owncloud.android.ui.SquareImageView
            android:id="@+id/thumbnail"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingLeft="@dimen/alternate_padding"
            android:paddingRight="@dimen/alternate_padding"
            android:scaleType="centerCrop"
            android:src="@drawable/folder"/>


        <ImageView
            android:id="@+id/favorite_action"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="top|right"
            android:layout_margin="@dimen/standard_quarter_margin"
            android:src="@drawable/ic_favorite"
            />

        <ImageView
            android:id="@+id/sharedIcon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="top|right"
            android:layout_marginTop="24dp"
            android:layout_marginRight="4dp"
            android:src="@drawable/shared_via_link"/>

        <ImageView
            android:id="@+id/localFileIndicator"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_gravity="bottom|right"
            android:layout_marginBottom="@dimen/standard_quarter_margin"
            android:layout_marginRight="@dimen/standard_quarter_margin"
            android:layout_marginTop="@dimen/standard_quarter_margin"
            android:src="@drawable/ic_synced"/>

        <ImageView
            android:id="@+id/keptOfflineIcon"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_gravity="bottom|right"
            android:layout_marginBottom="@dimen/standard_quarter_margin"
            android:layout_marginRight="24dp"
            android:src="@drawable/ic_available_offline" />

        <ImageView
            android:id="@+id/custom_checkbox"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/standard_quarter_margin"
            android:layout_marginRight="@dimen/standard_quarter_margin"
            android:layout_gravity="center_vertical|top"
            android:src="@android:drawable/checkbox_off_background"
            />
    </FrameLayout>

</LinearLayout>