-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecycler_item.xml
37 lines (33 loc) · 1.29 KB
/
recycler_item.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="20dp"
app:cardCornerRadius="20dp"
android:elevation="10dp">
<VideoView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/recyclerImage"
android:scaleType="centerCrop"/>
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="caption"
android:textSize="18sp"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="10dp"
android:textColor="@color/lavender"
android:id="@+id/recyclerCaption"/>
</LinearLayout>