Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.cardview.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="16dp"
- android:layout_marginBottom="16dp"
- app:cardCornerRadius="8dp"
- app:cardElevation="8dp">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="16dp">
- <androidx.cardview.widget.CardView
- android:id="@+id/card_thumbnail"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardCornerRadius="16dp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_item_photo"
- android:layout_width="match_parent"
- android:layout_height="190dp"
- android:scaleType="centerCrop"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:src="@drawable/ic_play_video_kajian"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_channel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/poppins_light"
- android:textColor="@color/colorGreyChannel"
- app:layout_constraintTop_toBottomOf="@id/card_thumbnail"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_speaker"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_medium"
- android:textColor="@color/colorPrimary"
- android:textSize="15sp"
- app:layout_constraintTop_toBottomOf="@id/tv_channel"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_medium"
- android:textColor="@color/colorDarkGrey"
- android:textSize="16sp"
- app:layout_constraintTop_toBottomOf="@id/tv_speaker"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement