p2play-app-android/app/src/main/res/layout/view_video.xml

117 lines
4.8 KiB
XML
Raw Normal View History

2018-08-18 07:04:31 +02:00
<?xml version="1.0" encoding="utf-8"?>
2024-03-23 00:23:16 +01:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-18 07:04:31 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-08-18 07:04:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/linearLayout"
2018-08-18 07:04:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2024-03-28 03:54:14 +01:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-08-18 07:04:31 +02:00
android:layout_width="match_parent"
2024-03-28 03:54:14 +01:00
android:layout_height="match_parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/thumb"
android:layout_width="match_parent"
android:layout_height="230dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@android:drawable/ic_menu_gallery" />
<TextView
android:id="@+id/isLive"
android:layout_width="65dp"
android:layout_height="19dp"
android:layout_marginStart="8dp"
android:layout_marginBottom="16dp"
android:background="@drawable/live_shape"
android:ems="10"
android:paddingHorizontal="3dp"
android:text="@string/is_live_video"
android:textAlignment="center"
android:textColor="@color/durationColor"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:visibility="invisible" />
<TextView
android:id="@+id/duration"
android:layout_width="65dp"
android:layout_height="19dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:textColor="?attr/colorOnSecondary"
android:background="@drawable/round_text"
android:ems="10"
android:text="00:00"
android:paddingHorizontal="3dp"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
2018-08-18 07:04:31 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="63dp"
2018-08-18 07:04:31 +02:00
android:orientation="horizontal">
<ImageView
android:id="@+id/userImg"
android:layout_width="140dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:adjustViewBounds="false"
android:clickable="false"
android:cropToPadding="false"
android:padding="5dp"
2024-03-19 01:45:04 +01:00
android:scaleType="fitCenter"
2018-08-18 07:04:31 +02:00
app:srcCompat="@drawable/default_avatar" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
2019-02-10 23:28:14 +01:00
android:gravity="center"
2018-08-18 07:04:31 +02:00
android:orientation="vertical">
<TextView
android:id="@+id/tittleTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLength="70"
2019-02-09 21:56:56 +01:00
android:textSize="14sp"
2024-03-23 00:23:16 +01:00
android:textStyle="bold"
android:theme="@style/MaterialAlertDialog.MaterialComponents.Title.Text"/>
2018-08-18 07:04:31 +02:00
<TextView
android:id="@+id/descriptionTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-09 21:56:56 +01:00
android:textColor="@android:color/darker_gray"
android:textSize="12sp" />
2018-08-18 07:04:31 +02:00
</LinearLayout>
</LinearLayout>
2018-08-18 07:04:31 +02:00
</LinearLayout>
2024-03-23 00:23:16 +01:00
<androidx.legacy.widget.Space
android:layout_width="match_parent"
android:layout_height="15dp"
android:layout_weight="1"
app:layout_constraintTop_toBottomOf="@+id/linearLayout" />
2024-03-23 00:23:16 +01:00
</androidx.constraintlayout.widget.ConstraintLayout>