112 lines
4.3 KiB
XML
112 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- START*** Root Container *** -->
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
card_view:cardCornerRadius="0dp"
|
|
card_view:cardElevation="0dp"
|
|
card_view:contentPadding="0dp"
|
|
card_view:cardPreventCornerOverlap="false"
|
|
card_view:cardUseCompatPadding="false">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/linearLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="0dp"
|
|
android:paddingRight="0dp"
|
|
android:paddingLeft="0dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/thumb"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/video_row_video_thumbnail"
|
|
android:maxHeight="300dp"
|
|
android:scaleType="fitXY" />
|
|
|
|
<TextView
|
|
android:textSize="12sp"
|
|
android:paddingStart="4dp"
|
|
android:paddingEnd="4dp"
|
|
android:layout_margin="2dp"
|
|
android:text=""
|
|
android:layout_above="@+id/avatar"
|
|
android:gravity="bottom|end"
|
|
android:layout_alignParentEnd="true"
|
|
android:id="@+id/video_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="#ffffff"
|
|
android:background="#232323"/>
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/avatar"
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:layout_below="@+id/thumb"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_marginTop="0dp"
|
|
android:contentDescription="@string/video_row_account_avatar"
|
|
android:paddingStart="12dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="12dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/thumb"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_toEndOf="@+id/avatar"
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:paddingTop="0dp"
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Subhead" />
|
|
|
|
<TextView
|
|
android:id="@+id/videoMeta"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/name"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginTop="0dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_toEndOf="@+id/avatar"
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption" />
|
|
|
|
<TextView
|
|
android:id="@+id/videoOwner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/videoMeta"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginTop="0dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_toEndOf="@id/avatar"
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/moreButton"
|
|
android:layout_width="45dp"
|
|
android:layout_height="45dp"
|
|
android:layout_below="@+id/thumb"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginStart="-16dp"
|
|
android:layout_marginEnd="0dp"
|
|
android:layout_toEndOf="@+id/name"
|
|
android:background="@null"
|
|
android:contentDescription="@string/descr_overflow_button"
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption"
|
|
/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|