|
@@ -17,180 +17,193 @@
|
|
|
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: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_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_alignParentTop="true"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/favorite"
|
|
|
- android:src="@drawable/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_marginEnd="@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/text_color"
|
|
|
- android:textSize="@dimen/two_line_primary_text_size"/>
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ 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">
|
|
|
+
|
|
|
+ <com.facebook.shimmer.ShimmerFrameLayout
|
|
|
+ android:id="@+id/shimmer_view_container"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:shimmer_auto_start="false">
|
|
|
|
|
|
<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:orientation="horizontal"
|
|
|
+ android:baselineAligned="false">
|
|
|
+ <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: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: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_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_alignParentTop="true"
|
|
|
+ android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
+ android:contentDescription="@string/favorite"
|
|
|
+ android:src="@drawable/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_marginEnd="@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/text_color"
|
|
|
+ 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: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: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"/>
|
|
|
-
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:paddingEnd="@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: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:clickable="true"
|
|
|
+ android:contentDescription="@string/shared_icon_share"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_unshared"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/sharedAvatars"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="@dimen/file_icon_size"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignEnd="@id/sharedIcon"
|
|
|
+ android:layout_toEndOf="@id/sharedIcon"
|
|
|
+ android:contentDescription="@string/shared_avatar_desc"
|
|
|
+ android:visibility="visible"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/custom_checkbox"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toEndOf="@id/sharedAvatars"
|
|
|
+ android:clickable="false"
|
|
|
+ android:contentDescription="@string/checkbox"
|
|
|
+ android:focusable="false"
|
|
|
+ android:paddingEnd="@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:clickable="true"
|
|
|
+ android:contentDescription="@string/overflow_menu"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingEnd="@dimen/alternate_padding"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:src="@drawable/ic_dots_vertical"/>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
</LinearLayout>
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:paddingEnd="@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: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:clickable="true"
|
|
|
- android:contentDescription="@string/shared_icon_share"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/list_item_share_right_margin"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_unshared"/>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/sharedAvatars"
|
|
|
- android:layout_width="100dp"
|
|
|
- android:layout_height="@dimen/file_icon_size"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_alignEnd="@id/sharedIcon"
|
|
|
- android:layout_toEndOf="@id/sharedIcon"
|
|
|
- android:contentDescription="@string/shared_avatar_desc"
|
|
|
- android:visibility="visible"/>
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/custom_checkbox"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_toEndOf="@id/sharedAvatars"
|
|
|
- android:clickable="false"
|
|
|
- android:contentDescription="@string/checkbox"
|
|
|
- android:focusable="false"
|
|
|
- android:paddingEnd="@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:clickable="true"
|
|
|
- android:contentDescription="@string/overflow_menu"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/alternate_padding"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_dots_vertical"/>
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
+ </com.facebook.shimmer.ShimmerFrameLayout>
|
|
|
</LinearLayout>
|