|
@@ -1,220 +1,208 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8"?><!--
|
|
|
- ownCloud Android client application
|
|
|
-
|
|
|
- Copyright (C) 2012 Bartek Przybylski
|
|
|
- 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="@dimen/standard_list_item_size"
|
|
|
- android:background="@drawable/list_selector"
|
|
|
- android:descendantFocusability="blocksDescendants"
|
|
|
- android:foreground="?android:attr/selectableItemBackground"
|
|
|
- android:baselineAligned="false"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="@dimen/standard_list_item_size"
|
|
|
- android:layout_height="@dimen/standard_list_item_size"
|
|
|
- android:paddingBottom="@dimen/standard_padding"
|
|
|
- android:paddingEnd="@dimen/standard_quarter_padding"
|
|
|
- android:paddingLeft="@dimen/zero"
|
|
|
- android:paddingRight="@dimen/standard_quarter_padding"
|
|
|
- android:paddingStart="@dimen/zero"
|
|
|
- android:paddingTop="@dimen/standard_padding">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/thumbnail"
|
|
|
- android:layout_width="@dimen/file_icon_size"
|
|
|
- android:layout_height="@dimen/file_icon_size"
|
|
|
- android:layout_centerInParent="true"
|
|
|
- android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
- android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
- android:contentDescription="@null"
|
|
|
- android:src="@drawable/folder" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/favorite_action"
|
|
|
- android:layout_width="@dimen/list_item_favorite_action_layout_width"
|
|
|
- android:layout_height="@dimen/list_item_favorite_action_layout_height"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/favorite"
|
|
|
- android:src="@drawable/badge_favorite" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/keptOfflineIcon"
|
|
|
- android:layout_width="@dimen/list_item_kept_offline_icon_layout_width"
|
|
|
- android:layout_height="@dimen/list_item_kept_offline_icon_layout_height"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_marginEnd="@dimen/list_item_kept_offline_icon_layout_right_end_margin"
|
|
|
- android:layout_marginRight="@dimen/list_item_kept_offline_icon_layout_right_end_margin"
|
|
|
- android:contentDescription="@string/available_offline_icon"
|
|
|
- android:src="@drawable/ic_available_offline" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/localFileIndicator"
|
|
|
- android:layout_width="@dimen/list_item_local_file_indicator_layout_width"
|
|
|
- android:layout_height="@dimen/list_item_local_file_indicator_layout_height"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/downloader_download_succeeded_ticker"
|
|
|
- android:scaleType="fitCenter"
|
|
|
- android:src="@drawable/ic_synced" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:gravity="top"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingTop="@dimen/standard_padding">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/Filename"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:ellipsize="middle"
|
|
|
- android:singleLine="true"
|
|
|
- android:text="@string/placeholder_filename"
|
|
|
- android:textColor="@color/textColor"
|
|
|
- android:textSize="@dimen/two_line_primary_text_size" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/file_size"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/placeholder_fileSize"
|
|
|
- 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="end"
|
|
|
- android:paddingEnd="@dimen/standard_quarter_padding"
|
|
|
- android:paddingLeft="@dimen/zero"
|
|
|
- android:paddingRight="@dimen/standard_quarter_padding"
|
|
|
- android:paddingStart="@dimen/zero"
|
|
|
- android:text="@string/info_separator"
|
|
|
- android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
- android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/last_mod"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="end"
|
|
|
- android:text="@string/placeholder_media_time"
|
|
|
- android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
- android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:paddingEnd="@dimen/zero"
|
|
|
- android:paddingLeft="@dimen/standard_half_padding"
|
|
|
- android:paddingRight="@dimen/zero"
|
|
|
- android:paddingStart="@dimen/standard_half_padding">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/unreadComments"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:clickable="true"
|
|
|
- android:contentDescription="@string/unread_comments"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
- android:paddingLeft="@dimen/standard_half_padding"
|
|
|
- android:paddingRight="@dimen/list_item_share_right_margin"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_comment"
|
|
|
- android:visibility="gone"/>
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/sharedIcon"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_toEndOf="@id/unreadComments"
|
|
|
- android:layout_toRightOf="@id/unreadComments"
|
|
|
- android:clickable="true"
|
|
|
- android:contentDescription="@string/shared_icon_share"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
- android:paddingLeft="@dimen/standard_half_padding"
|
|
|
- android:paddingRight="@dimen/list_item_share_right_margin"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_unshared" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/custom_checkbox"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_toEndOf="@id/sharedIcon"
|
|
|
- android:layout_toRightOf="@id/sharedIcon"
|
|
|
- android:clickable="false"
|
|
|
- android:contentDescription="@string/checkbox"
|
|
|
- android:focusable="false"
|
|
|
- android:paddingEnd="@dimen/alternate_padding"
|
|
|
- android:paddingLeft="@dimen/standard_half_padding"
|
|
|
- android:paddingRight="@dimen/alternate_padding"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_checkbox_blank_outline" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/overflow_menu"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_toEndOf="@id/custom_checkbox"
|
|
|
- android:layout_toRightOf="@id/custom_checkbox"
|
|
|
- android:clickable="true"
|
|
|
- android:contentDescription="@string/overflow_menu"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/alternate_padding"
|
|
|
- android:paddingLeft="@dimen/standard_half_padding"
|
|
|
- android:paddingRight="@dimen/alternate_padding"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_dots_vertical" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
-</LinearLayout>
|
|
|
+<?xml version="1.0" encoding="UTF-8"?><!--
|
|
|
+ ownCloud Android client application
|
|
|
+
|
|
|
+ Copyright (C) 2012 Bartek Przybylski
|
|
|
+ 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="@dimen/standard_list_item_size"
|
|
|
+ android:background="@drawable/list_selector"
|
|
|
+ android:descendantFocusability="blocksDescendants"
|
|
|
+ android:foreground="?android:attr/selectableItemBackground"
|
|
|
+ android:baselineAligned="false"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="@dimen/standard_list_item_size"
|
|
|
+ android:layout_height="@dimen/standard_list_item_size"
|
|
|
+ android:paddingBottom="@dimen/standard_padding"
|
|
|
+ android:paddingEnd="@dimen/standard_quarter_padding"
|
|
|
+ android:paddingLeft="@dimen/zero"
|
|
|
+ android:paddingRight="@dimen/standard_quarter_padding"
|
|
|
+ android:paddingStart="@dimen/zero"
|
|
|
+ android:paddingTop="@dimen/standard_padding">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/thumbnail"
|
|
|
+ android:layout_width="@dimen/file_icon_size"
|
|
|
+ android:layout_height="@dimen/file_icon_size"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
+ android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
+ android:contentDescription="@null"
|
|
|
+ android:src="@drawable/folder" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/favorite_action"
|
|
|
+ android:layout_width="@dimen/list_item_favorite_action_layout_width"
|
|
|
+ android:layout_height="@dimen/list_item_favorite_action_layout_height"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
+ android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
+ android:contentDescription="@string/favorite"
|
|
|
+ android:src="@drawable/badge_favorite" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/localFileIndicator"
|
|
|
+ android:layout_width="@dimen/list_item_local_file_indicator_layout_width"
|
|
|
+ android:layout_height="@dimen/list_item_local_file_indicator_layout_height"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
+ android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
+ android:contentDescription="@string/downloader_download_succeeded_ticker"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ android:src="@drawable/ic_synced" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="top"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingTop="@dimen/standard_padding">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/Filename"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:ellipsize="middle"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="@string/placeholder_filename"
|
|
|
+ android:textColor="@color/textColor"
|
|
|
+ android:textSize="@dimen/two_line_primary_text_size" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/file_size"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/placeholder_fileSize"
|
|
|
+ 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="end"
|
|
|
+ android:paddingEnd="@dimen/standard_quarter_padding"
|
|
|
+ android:paddingLeft="@dimen/zero"
|
|
|
+ android:paddingRight="@dimen/standard_quarter_padding"
|
|
|
+ android:paddingStart="@dimen/zero"
|
|
|
+ android:text="@string/info_separator"
|
|
|
+ android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
+ android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/last_mod"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="end"
|
|
|
+ android:text="@string/placeholder_media_time"
|
|
|
+ android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
+ android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:paddingEnd="@dimen/zero"
|
|
|
+ android:paddingLeft="@dimen/standard_half_padding"
|
|
|
+ android:paddingRight="@dimen/zero"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/unreadComments"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/unread_comments"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
+ android:paddingLeft="@dimen/standard_half_padding"
|
|
|
+ android:paddingRight="@dimen/list_item_share_right_margin"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_comment"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sharedIcon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toEndOf="@id/unreadComments"
|
|
|
+ android:layout_toRightOf="@id/unreadComments"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/shared_icon_share"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
+ android:paddingLeft="@dimen/standard_half_padding"
|
|
|
+ android:paddingRight="@dimen/list_item_share_right_margin"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_unshared" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/custom_checkbox"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toEndOf="@id/sharedIcon"
|
|
|
+ android:layout_toRightOf="@id/sharedIcon"
|
|
|
+ android:clickable="false"
|
|
|
+ android:contentDescription="@string/checkbox"
|
|
|
+ android:focusable="false"
|
|
|
+ android:paddingEnd="@dimen/alternate_padding"
|
|
|
+ android:paddingLeft="@dimen/standard_half_padding"
|
|
|
+ android:paddingRight="@dimen/alternate_padding"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_checkbox_blank_outline" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/overflow_menu"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toEndOf="@id/custom_checkbox"
|
|
|
+ android:layout_toRightOf="@id/custom_checkbox"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/overflow_menu"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingEnd="@dimen/alternate_padding"
|
|
|
+ android:paddingLeft="@dimen/standard_half_padding"
|
|
|
+ android:paddingRight="@dimen/alternate_padding"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_dots_vertical" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|