forked from 100mslive/100ms-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_item_video.xml
87 lines (74 loc) · 3.55 KB
/
list_item_video.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/container"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="@dimen/video_list_size"
android:layout_height="@dimen/video_list_size"
android:layout_margin="4dp"
app:cardCornerRadius="4dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name_initials"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/circle_secondary_48"
android:gravity="center"
android:text="@string/john_doe_initials"
android:textColor="@android:color/white"
android:textSize="24sp" />
<org.webrtc.SurfaceViewRenderer
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone" />
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="-3dp"
android:layout_marginBottom="-3dp"
app:cardCornerRadius="5dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="4dp"
android:layout_marginBottom="6dp"
android:orientation="horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/john_doe"
android:textSize="12sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/icon_audio_off"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:layout_marginLeft="8dp"
android:contentDescription="@string/screen_share"
android:src="@drawable/ic_mic_off_24"
app:tint="@color/white_faded_70" />
<ImageView
android:id="@+id/icon_screen_share"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:layout_marginLeft="4dp"
android:contentDescription="@string/screen_share"
android:src="@drawable/ic_mobile_screen_share_24"
app:tint="@color/white_faded_70" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>