2012-08-14 14:37:08 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
ownCloud Android client application
|
|
|
|
|
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
2015-03-05 15:27:45 +03:00
|
|
|
Copyright (C) 2015 ownCloud Inc.
|
2013-02-07 21:45:10 +04:00
|
|
|
|
2012-08-14 14:37:08 +04:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
2013-04-17 14:26:13 +04:00
|
|
|
it under the terms of the GNU General Public License version 2,
|
|
|
|
as published by the Free Software Foundation.
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
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"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_width="match_parent"
|
2012-08-14 14:37:08 +04:00
|
|
|
android:background="@drawable/list_selector"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:orientation="vertical"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_height="72dp">
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
<LinearLayout
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_width="match_parent"
|
2012-08-14 14:37:08 +04:00
|
|
|
android:layout_height="match_parent"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<FrameLayout
|
2015-08-14 11:05:26 +03:00
|
|
|
android:layout_width="60dp"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_height="72dp"
|
2015-09-16 17:27:47 +03:00
|
|
|
android:paddingLeft="12dp"
|
2015-08-14 01:34:12 +03:00
|
|
|
android:paddingBottom="@dimen/standard_padding"
|
|
|
|
android:paddingTop="@dimen/standard_padding"
|
2015-08-14 11:05:26 +03:00
|
|
|
android:paddingRight="4dp"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/localFileIndicator"
|
|
|
|
android:layout_width="@dimen/file_icon_size"
|
|
|
|
android:layout_height="@dimen/file_icon_size"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_gravity="top|right"
|
2015-09-16 17:27:47 +03:00
|
|
|
android:layout_marginRight="4dp"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:src="@drawable/local_file_indicator" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="@dimen/file_icon_size"
|
|
|
|
android:layout_height="@dimen/file_icon_size"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_gravity="left|center_vertical"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:src="@drawable/ic_menu_archive" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/favoriteIcon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|right"
|
2015-09-16 17:27:47 +03:00
|
|
|
android:layout_marginRight="4dp"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:src="@drawable/ic_favorite" />
|
|
|
|
</FrameLayout>
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
<LinearLayout
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
2015-08-14 01:34:12 +03:00
|
|
|
android:gravity="top"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:paddingTop="@dimen/standard_padding"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:orientation="vertical" >
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
<TextView
|
2015-01-22 11:29:36 +03:00
|
|
|
android:id="@+id/Filename"
|
2012-08-14 14:37:08 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_gravity="center_vertical"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_marginLeft="0dp"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:singleLine="true"
|
2012-08-14 14:37:08 +04:00
|
|
|
android:text="TextView"
|
2015-10-16 12:02:46 +03:00
|
|
|
android:textColor="@color/textColor"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:textSize="@dimen/two_line_primary_text_size" />
|
2012-08-14 14:37:08 +04:00
|
|
|
|
2015-01-22 11:29:36 +03:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2012-08-14 14:37:08 +04:00
|
|
|
android:layout_height="wrap_content"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:layout_marginLeft="0dp"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_marginRight="4dp"
|
2015-08-14 11:05:26 +03:00
|
|
|
android:orientation="horizontal">
|
2015-01-22 11:29:36 +03:00
|
|
|
|
|
|
|
<TextView
|
2015-11-02 17:26:00 +03:00
|
|
|
android:id="@+id/file_size"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-02 14:22:49 +03:00
|
|
|
android:text="Size MB"
|
2015-08-14 11:05:26 +03:00
|
|
|
android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
|
android:textSize="@dimen/two_line_secondary_text_size"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/file_separator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="right"
|
|
|
|
android:text=", "
|
2015-01-22 11:29:36 +03:00
|
|
|
android:textColor="@color/list_item_lastmod_and_filesize_text"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:textSize="@dimen/two_line_secondary_text_size"/>
|
2015-01-22 11:29:36 +03:00
|
|
|
|
|
|
|
<TextView
|
2015-11-02 17:26:00 +03:00
|
|
|
android:id="@+id/last_mod"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="right"
|
2015-11-02 14:22:49 +03:00
|
|
|
android:text="Mod Date"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:textColor="@color/list_item_lastmod_and_filesize_text"
|
2015-08-10 19:32:25 +03:00
|
|
|
android:textSize="@dimen/two_line_secondary_text_size"/>
|
2015-01-22 11:29:36 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-10-15 10:26:24 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sharedIcon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:src="@drawable/shared_via_link" />
|
2014-01-23 21:33:38 +04:00
|
|
|
|
2015-01-22 11:29:36 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/custom_checkbox"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="4dp"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:layout_marginRight="@dimen/standard_margin"
|
2015-01-22 11:29:36 +03:00
|
|
|
android:gravity=""
|
2015-08-07 19:05:34 +03:00
|
|
|
android:src="@drawable/ic_checkbox_blank_outline" />
|
2014-06-25 11:04:50 +04:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-01-22 11:29:36 +03:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@color/list_divider_background"></View>
|
2012-08-14 14:37:08 +04:00
|
|
|
|
|
|
|
</LinearLayout>
|