|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | + ~ Nextcloud - Android Client |
| 4 | + ~ |
| 5 | + ~ SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]> |
| 6 | + ~ SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | + --> |
| 8 | +<androidx.constraintlayout.widget.ConstraintLayout |
| 9 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 10 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 11 | + xmlns:tools="http://schemas.android.com/tools" |
| 12 | + android:id="@+id/recommended_file_item_layout" |
| 13 | + android:layout_width="@dimen/grid_container_width" |
| 14 | + android:layout_height="@dimen/grid_container_height" |
| 15 | + android:layout_margin="@dimen/grid_container_margin"> |
| 16 | + |
| 17 | + <com.elyeproj.loaderviewlibrary.LoaderImageView |
| 18 | + android:id="@+id/thumbnail_shimmer" |
| 19 | + android:layout_width="0dp" |
| 20 | + android:layout_height="0dp" |
| 21 | + android:contentDescription="@null" |
| 22 | + android:src="@drawable/folder" |
| 23 | + android:visibility="gone" |
| 24 | + app:layout_constraintBottom_toBottomOf="@id/thumbnail" |
| 25 | + app:layout_constraintEnd_toEndOf="@id/thumbnail" |
| 26 | + app:layout_constraintStart_toStartOf="@id/thumbnail" |
| 27 | + app:layout_constraintTop_toTopOf="@id/thumbnail" |
| 28 | + tools:visibility="visible" /> |
| 29 | + |
| 30 | + <com.owncloud.android.ui.SquareImageView |
| 31 | + android:id="@+id/thumbnail" |
| 32 | + android:layout_width="@dimen/standard_list_item_size" |
| 33 | + android:layout_height="@dimen/standard_list_item_size" |
| 34 | + android:layout_marginTop="@dimen/standard_half_margin" |
| 35 | + android:contentDescription="@null" |
| 36 | + android:src="@drawable/folder" |
| 37 | + app:layout_constraintEnd_toEndOf="parent" |
| 38 | + app:layout_constraintStart_toStartOf="parent" |
| 39 | + app:layout_constraintTop_toTopOf="parent" |
| 40 | + tools:visibility="visible" /> |
| 41 | + |
| 42 | + <LinearLayout |
| 43 | + android:id="@+id/file_features_layout" |
| 44 | + android:layout_width="wrap_content" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:alpha="0.9" |
| 47 | + android:background="@drawable/rounded_rect" |
| 48 | + android:backgroundTint="@color/grid_file_features_background_color" |
| 49 | + android:gravity="center" |
| 50 | + android:orientation="horizontal" |
| 51 | + android:padding="@dimen/standard_quarter_padding" |
| 52 | + android:translationZ="4dp" |
| 53 | + app:layout_constraintBottom_toBottomOf="@+id/thumbnail" |
| 54 | + app:layout_constraintEnd_toEndOf="parent" |
| 55 | + app:layout_constraintHorizontal_bias="0.85" |
| 56 | + app:layout_constraintStart_toStartOf="parent" |
| 57 | + app:layout_constraintTop_toTopOf="parent" |
| 58 | + app:layout_constraintVertical_bias="0.85"> |
| 59 | + |
| 60 | + <ImageView |
| 61 | + android:id="@+id/favorite_action" |
| 62 | + android:layout_width="@dimen/grid_layout_item_size" |
| 63 | + android:layout_height="@dimen/grid_layout_item_size" |
| 64 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 65 | + android:contentDescription="@string/favorite_icon" |
| 66 | + android:src="@drawable/favorite" |
| 67 | + tools:visibility="visible" /> |
| 68 | + |
| 69 | + <ImageView |
| 70 | + android:id="@+id/videoOverlay" |
| 71 | + android:layout_width="@dimen/grid_layout_item_size" |
| 72 | + android:layout_height="@dimen/grid_layout_item_size" |
| 73 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 74 | + android:contentDescription="@string/video_overlay_icon" |
| 75 | + android:src="@drawable/video_white" |
| 76 | + android:visibility="gone" |
| 77 | + app:tint="@color/grid_file_features_icon_color" |
| 78 | + tools:visibility="visible" /> |
| 79 | + |
| 80 | + <ImageView |
| 81 | + android:id="@+id/sharedIcon" |
| 82 | + android:layout_width="@dimen/grid_layout_item_size" |
| 83 | + android:layout_height="@dimen/grid_layout_item_size" |
| 84 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 85 | + android:contentDescription="@string/shared_icon_shared_via_link" |
| 86 | + android:src="@drawable/shared_via_link" |
| 87 | + app:tint="@color/grid_file_features_icon_color" |
| 88 | + tools:visibility="visible" /> |
| 89 | + |
| 90 | + <ImageView |
| 91 | + android:id="@+id/unreadComments" |
| 92 | + android:layout_width="@dimen/grid_layout_item_size" |
| 93 | + android:layout_height="@dimen/grid_layout_item_size" |
| 94 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 95 | + android:clickable="true" |
| 96 | + android:contentDescription="@string/unread_comments" |
| 97 | + android:focusable="true" |
| 98 | + android:src="@drawable/ic_comment_grid" |
| 99 | + android:visibility="gone" |
| 100 | + app:tint="@color/grid_file_features_icon_color" |
| 101 | + tools:ignore="TouchTargetSizeCheck" |
| 102 | + tools:visibility="visible" /> |
| 103 | + |
| 104 | + <ImageView |
| 105 | + android:id="@+id/grid_live_photo_indicator" |
| 106 | + android:layout_width="@dimen/grid_layout_item_size" |
| 107 | + android:layout_height="@dimen/grid_layout_item_size" |
| 108 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 109 | + android:clickable="true" |
| 110 | + android:contentDescription="@string/grid_file_features_live_photo_content_description" |
| 111 | + android:focusable="true" |
| 112 | + android:src="@drawable/ic_live_photo" |
| 113 | + android:visibility="gone" |
| 114 | + app:tint="@color/grid_file_features_icon_color" |
| 115 | + tools:ignore="TouchTargetSizeCheck" |
| 116 | + tools:visibility="visible" /> |
| 117 | + |
| 118 | + <ImageView |
| 119 | + android:id="@+id/localFileIndicator" |
| 120 | + android:layout_width="@dimen/grid_layout_item_size" |
| 121 | + android:layout_height="@dimen/grid_layout_item_size" |
| 122 | + android:layout_marginEnd="@dimen/grid_layout_margin_end" |
| 123 | + android:contentDescription="@string/synced_icon" |
| 124 | + android:src="@drawable/ic_synced" |
| 125 | + tools:visibility="visible" /> |
| 126 | + |
| 127 | + </LinearLayout> |
| 128 | + |
| 129 | + <ImageView |
| 130 | + android:id="@+id/custom_checkbox" |
| 131 | + android:layout_width="@dimen/grid_checkbox_size" |
| 132 | + android:layout_height="@dimen/grid_checkbox_size" |
| 133 | + android:layout_marginStart="@dimen/grid_checkbox_margin" |
| 134 | + android:layout_marginTop="@dimen/grid_checkbox_margin" |
| 135 | + android:contentDescription="@string/checkbox" |
| 136 | + android:src="@android:drawable/checkbox_off_background" |
| 137 | + app:layout_constraintStart_toStartOf="parent" |
| 138 | + app:layout_constraintTop_toTopOf="parent" |
| 139 | + tools:visibility="visible" /> |
| 140 | + |
| 141 | + <LinearLayout |
| 142 | + android:layout_width="match_parent" |
| 143 | + android:layout_height="wrap_content" |
| 144 | + app:layout_constraintEnd_toEndOf="parent" |
| 145 | + app:layout_constraintBottom_toBottomOf="parent" |
| 146 | + app:layout_constraintStart_toStartOf="parent" |
| 147 | + app:layout_constraintTop_toBottomOf="@+id/thumbnail" |
| 148 | + android:orientation="vertical"> |
| 149 | + |
| 150 | + <LinearLayout |
| 151 | + android:layout_width="match_parent" |
| 152 | + android:gravity="center" |
| 153 | + android:layout_height="wrap_content" |
| 154 | + android:orientation="horizontal"> |
| 155 | + |
| 156 | + <TextView |
| 157 | + android:id="@+id/filename" |
| 158 | + android:layout_width="wrap_content" |
| 159 | + android:layout_height="match_parent" |
| 160 | + android:maxWidth="@dimen/grid_container_default_max_file_name" |
| 161 | + android:layout_gravity="center" |
| 162 | + android:ellipsize="end" |
| 163 | + android:gravity="center" |
| 164 | + android:singleLine="true" |
| 165 | + android:text="@string/placeholder_filename" |
| 166 | + android:textSize="@dimen/grid_item_text_size" /> |
| 167 | + |
| 168 | + <TextView |
| 169 | + android:id="@+id/extension" |
| 170 | + android:layout_width="wrap_content" |
| 171 | + android:layout_height="match_parent" |
| 172 | + android:ellipsize="start" |
| 173 | + android:gravity="center" |
| 174 | + android:maxLines="1" |
| 175 | + android:text="@string/placeholder_extension" |
| 176 | + android:textSize="@dimen/grid_item_text_size" /> |
| 177 | + |
| 178 | + </LinearLayout> |
| 179 | + |
| 180 | + <TextView |
| 181 | + android:id="@+id/reason" |
| 182 | + android:layout_width="wrap_content" |
| 183 | + android:layout_height="match_parent" |
| 184 | + android:layout_gravity="center" |
| 185 | + android:gravity="center" |
| 186 | + android:singleLine="true" |
| 187 | + android:text="@string/placeholder_reason" |
| 188 | + android:textSize="@dimen/grid_recommended_item_reason_text_size" /> |
| 189 | + |
| 190 | + </LinearLayout> |
| 191 | + |
| 192 | + <ImageButton |
| 193 | + android:id="@+id/more" |
| 194 | + android:layout_width="@dimen/grid_bottom_view_height" |
| 195 | + android:layout_height="@dimen/grid_bottom_view_height" |
| 196 | + android:layout_gravity="end" |
| 197 | + android:background="@color/transparent" |
| 198 | + android:contentDescription="@string/overflow_menu" |
| 199 | + app:layout_constraintBottom_toBottomOf="parent" |
| 200 | + app:layout_constraintEnd_toEndOf="parent" |
| 201 | + app:srcCompat="@drawable/ic_dots_vertical" |
| 202 | + tools:ignore="TouchTargetSizeCheck" /> |
| 203 | + |
| 204 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments