|
@@ -15,129 +15,176 @@
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
-->
|
|
|
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+<LinearLayout
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:id="@+id/ListItemLayout"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_marginEnd="@dimen/grid_container_margin"
|
|
|
+ android:layout_marginTop="@dimen/grid_container_margin"
|
|
|
+ android:gravity="center"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_horizontal"
|
|
|
- android:foreground="?android:attr/selectableItemBackground"
|
|
|
- android:gravity="center_horizontal"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <com.elyeproj.loaderviewlibrary.LoaderImageView
|
|
|
- android:id="@+id/thumbnail_shimmer"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_margin="@dimen/grid_image_icon_margin"
|
|
|
- android:contentDescription="@null"
|
|
|
- android:visibility="gone"
|
|
|
- app:corners="6"
|
|
|
- app:height_weight="0.6"
|
|
|
- app:width_weight="0.4" />
|
|
|
-
|
|
|
- <com.owncloud.android.ui.SquareImageView
|
|
|
- android:id="@+id/thumbnail"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:contentDescription="@null"
|
|
|
- android:padding="@dimen/grid_image_icon_padding"
|
|
|
- android:scaleType="centerCrop"
|
|
|
- android:src="@drawable/file_image" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- tools:visibility="visible"
|
|
|
- android:id="@+id/favorite_action"
|
|
|
- android:layout_width="16dp"
|
|
|
- android:layout_height="16dp"
|
|
|
- android:layout_gravity="top|end"
|
|
|
- android:layout_margin="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/favorite_icon"
|
|
|
- android:visibility="gone"
|
|
|
- android:src="@drawable/favorite" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- tools:visibility="visible"
|
|
|
- android:id="@+id/unreadComments"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="top|end"
|
|
|
- android:layout_marginTop="70dp"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:clickable="true"
|
|
|
- android:contentDescription="@string/unread_comments"
|
|
|
- android:focusable="true"
|
|
|
- android:src="@drawable/ic_comment_grid"
|
|
|
- android:visibility="gone" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- tools:visibility="visible"
|
|
|
- android:id="@+id/localFileIndicator"
|
|
|
- android:layout_width="16dp"
|
|
|
- android:layout_height="16dp"
|
|
|
- android:layout_gravity="bottom|end"
|
|
|
- android:layout_marginTop="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginBottom="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/synced_icon"
|
|
|
- android:src="@drawable/ic_synced" />
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="28dp"
|
|
|
- android:layout_height="28dp"
|
|
|
- android:layout_gravity="top|end"
|
|
|
- android:layout_marginTop="32dp"
|
|
|
- android:layout_marginEnd="@dimen/standard_quarter_margin"
|
|
|
- android:background="@drawable/rounded_rect"
|
|
|
- android:backgroundTint="#F6F6F6">
|
|
|
+ android:layout_height="@dimen/grid_container_height">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/sharedIcon"
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="@dimen/grid_container_width"
|
|
|
+ android:layout_height="@dimen/grid_container_height">
|
|
|
+
|
|
|
+ <com.elyeproj.loaderviewlibrary.LoaderImageView
|
|
|
+ android:id="@+id/thumbnail_shimmer"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:layout_marginBottom="@dimen/grid_thumbnail_margin_bottom"
|
|
|
+ android:layout_width="@dimen/standard_list_item_size"
|
|
|
+ android:layout_height="@dimen/standard_list_item_size"
|
|
|
+ android:contentDescription="@null"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <com.owncloud.android.ui.SquareImageView
|
|
|
+ android:id="@+id/thumbnail"
|
|
|
+ android:layout_marginBottom="@dimen/grid_thumbnail_margin_bottom"
|
|
|
+ android:layout_width="@dimen/standard_list_item_size"
|
|
|
+ android:layout_height="@dimen/standard_list_item_size"
|
|
|
+ android:contentDescription="@null"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
tools:visibility="visible"
|
|
|
- android:layout_gravity="center"
|
|
|
+ android:src="@drawable/file_image" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/file_features_layout"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:contentDescription="@string/shared_icon_shared_via_link"
|
|
|
- android:src="@drawable/shared_via_link" />
|
|
|
-
|
|
|
- </FrameLayout>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/grid_live_photo_indicator"
|
|
|
- tools:visibility="visible"
|
|
|
- android:visibility="gone"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:drawableTint="@color/list_item_lastmod_and_filesize_text"
|
|
|
- android:background="@drawable/rounded_rect"
|
|
|
- android:backgroundTint="#F6F6F6"
|
|
|
- android:paddingVertical="10dp"
|
|
|
- android:paddingHorizontal="2dp"
|
|
|
- android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
- android:text="@string/file_list_live"
|
|
|
- android:drawablePadding="@dimen/standard_eight_padding"
|
|
|
- android:gravity="center"
|
|
|
- android:layout_gravity="start|bottom"
|
|
|
- android:textColor="@color/list_item_lastmod_and_filesize_text"
|
|
|
- android:textSize="@dimen/two_line_secondary_text_size"
|
|
|
- app:drawableTopCompat="@drawable/ic_live_photo" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/live_photo_indicator_separator"
|
|
|
- android:visibility="gone"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"/>
|
|
|
-
|
|
|
- <ImageView
|
|
|
- tools:visibility="visible"
|
|
|
- android:id="@+id/custom_checkbox"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical|top"
|
|
|
- android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginRight="@dimen/standard_quarter_margin"
|
|
|
- android:contentDescription="@string/checkbox"
|
|
|
- android:src="@android:drawable/checkbox_off_background" />
|
|
|
-</FrameLayout>
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_file_features_margin_end"
|
|
|
+ android:layout_marginBottom="@dimen/grid_layout_margin_bottom"
|
|
|
+ android:alpha="0.9"
|
|
|
+ android:background="@drawable/rounded_rect"
|
|
|
+ android:backgroundTint="@color/grid_file_features_background_color"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_quarter_padding"
|
|
|
+ android:translationZ="4dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/thumbnail"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/favorite_action"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:contentDescription="@string/favorite_icon"
|
|
|
+ android:src="@drawable/favorite" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/videoOverlay"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:contentDescription="@string/video_overlay_icon"
|
|
|
+ android:src="@drawable/video_white"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:tint="@color/grid_file_features_icon_color"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sharedIcon"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:contentDescription="@string/shared_icon_shared_via_link"
|
|
|
+ android:src="@drawable/shared_via_link"
|
|
|
+ app:tint="@color/grid_file_features_icon_color"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/unreadComments"
|
|
|
+ tools:ignore="TouchTargetSizeCheck"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/unread_comments"
|
|
|
+ android:focusable="true"
|
|
|
+ android:src="@drawable/ic_comment_grid"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:tint="@color/grid_file_features_icon_color"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/grid_live_photo_indicator"
|
|
|
+ tools:ignore="TouchTargetSizeCheck"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/grid_file_features_live_photo_content_description"
|
|
|
+ android:focusable="true"
|
|
|
+ android:src="@drawable/ic_live_photo"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:tint="@color/grid_file_features_icon_color"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/localFileIndicator"
|
|
|
+ android:layout_width="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_height="@dimen/grid_layout_item_size"
|
|
|
+ android:layout_marginEnd="@dimen/grid_layout_margin_end"
|
|
|
+ android:contentDescription="@string/synced_icon"
|
|
|
+ android:src="@drawable/ic_synced"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/custom_checkbox"
|
|
|
+ android:layout_width="@dimen/grid_checkbox_size"
|
|
|
+ android:layout_height="@dimen/grid_checkbox_size"
|
|
|
+ android:layout_marginStart="@dimen/grid_checkbox_margin"
|
|
|
+ android:layout_marginTop="@dimen/grid_checkbox_margin"
|
|
|
+ android:contentDescription="@string/checkbox"
|
|
|
+ android:src="@android:drawable/checkbox_off_background"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/Filename"
|
|
|
+ android:layout_width="@dimen/grid_filename_width"
|
|
|
+ android:layout_height="@dimen/grid_bottom_view_height"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginBottom="@dimen/grid_bottom_view_margin_bottom"
|
|
|
+ android:ellipsize="middle"
|
|
|
+ android:gravity="center"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="@string/placeholder_filename"
|
|
|
+ android:textColor="@color/text_color"
|
|
|
+ android:textSize="@dimen/grid_item_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:id="@+id/more"
|
|
|
+ android:layout_width="@dimen/grid_bottom_view_height"
|
|
|
+ android:layout_marginBottom="@dimen/grid_bottom_view_margin_bottom"
|
|
|
+ tools:ignore="TouchTargetSizeCheck"
|
|
|
+ android:layout_height="@dimen/grid_bottom_view_height"
|
|
|
+ android:layout_marginEnd="@dimen/grid_bottom_view_margin_end"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@color/transparent"
|
|
|
+ android:contentDescription="@string/overflow_menu"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:srcCompat="@drawable/ic_dots_vertical" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|