|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:id="@+id/itemRoot" |
| 6 | + android:layout_width="match_parent" |
| 7 | + android:layout_height="wrap_content" |
| 8 | + android:background="?attr/selectableItemBackground" |
| 9 | + android:clickable="true" |
| 10 | + android:focusable="true" |
| 11 | + android:padding="@dimen/channel_item_grid_padding"> |
| 12 | + |
| 13 | + <com.google.android.material.imageview.ShapeableImageView |
| 14 | + android:id="@+id/itemThumbnailView" |
| 15 | + android:layout_width="@dimen/channel_item_card_thumbnail_image_size" |
| 16 | + android:layout_height="@dimen/channel_item_card_thumbnail_image_size" |
| 17 | + android:layout_centerHorizontal="true" |
| 18 | + android:contentDescription="@string/detail_uploader_thumbnail_view_description" |
| 19 | + android:src="@drawable/placeholder_person" |
| 20 | + app:layout_constraintStart_toStartOf="parent" |
| 21 | + app:layout_constraintTop_toTopOf="parent" |
| 22 | + app:shapeAppearance="@style/CircularImageView" |
| 23 | + tools:ignore="RtlHardcoded" |
| 24 | + tools:src="@tools:sample/avatars" /> |
| 25 | + |
| 26 | + <TextView |
| 27 | + android:id="@+id/itemTitleView" |
| 28 | + android:layout_width="0dp" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:layout_marginStart="@dimen/spacing_mid" |
| 31 | + android:ellipsize="end" |
| 32 | + android:lines="1" |
| 33 | + android:textAppearance="?android:attr/textAppearanceLarge" |
| 34 | + android:textSize="@dimen/video_item_search_title_text_size" |
| 35 | + android:textStyle="normal" |
| 36 | + app:layout_constraintEnd_toEndOf="parent" |
| 37 | + app:layout_constraintStart_toEndOf="@id/itemThumbnailView" |
| 38 | + app:layout_constraintTop_toTopOf="@id/itemThumbnailView" |
| 39 | + tools:ignore="RtlHardcoded" |
| 40 | + tools:text="@sample/channels.json/data/name" /> |
| 41 | + |
| 42 | + <TextView |
| 43 | + android:id="@+id/itemChannelDescriptionView" |
| 44 | + android:layout_width="0dp" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:layout_below="@id/itemTitleView" |
| 47 | + android:layout_centerHorizontal="true" |
| 48 | + android:ellipsize="end" |
| 49 | + android:maxLines="8" |
| 50 | + android:textAppearance="?android:attr/textAppearanceSmall" |
| 51 | + android:textSize="@dimen/video_item_search_upload_date_text_size" |
| 52 | + app:layout_constraintEnd_toEndOf="parent" |
| 53 | + app:layout_constraintStart_toStartOf="@id/itemTitleView" |
| 54 | + app:layout_constraintTop_toBottomOf="@id/itemTitleView" |
| 55 | + tools:ignore="RtlHardcoded" |
| 56 | + tools:text="@sample/channels.json/data/description" /> |
| 57 | + |
| 58 | + <TextView |
| 59 | + android:id="@+id/itemAdditionalDetails" |
| 60 | + android:layout_width="0dp" |
| 61 | + android:layout_height="wrap_content" |
| 62 | + android:layout_marginTop="@dimen/spacing_micro" |
| 63 | + android:gravity="center" |
| 64 | + android:lines="2" |
| 65 | + android:textAppearance="?android:attr/textAppearanceSmall" |
| 66 | + android:textSize="@dimen/video_item_search_upload_date_text_size" |
| 67 | + android:textStyle="normal" |
| 68 | + app:layout_constraintEnd_toEndOf="@id/itemThumbnailView" |
| 69 | + app:layout_constraintStart_toStartOf="@id/itemThumbnailView" |
| 70 | + app:layout_constraintTop_toBottomOf="@id/itemThumbnailView" |
| 71 | + tools:ignore="RtlHardcoded" |
| 72 | + tools:text="@sample/channels.json/data/additional" /> |
| 73 | + |
| 74 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments