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

338 lines
14 KiB
XML
Raw Normal View History

2018-08-18 07:04:31 +02:00
<?xml version="1.0" encoding="utf-8"?>
2024-03-22 00:47:54 +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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ReproductorActivity">
2019-02-17 21:29:33 +01:00
<RelativeLayout
android:id="@+id/fullScreen"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
2024-03-22 00:47:54 +01:00
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
2019-02-17 21:29:33 +01:00
android:visibility="gone" />
2018-08-18 07:04:31 +02:00
<ScrollView
2019-02-17 21:29:33 +01:00
android:id="@+id/nonFullScreen"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
2018-09-11 00:45:51 +02:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2018-08-18 07:04:31 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<WebView
android:id="@+id/videoView"
android:layout_width="match_parent"
2024-03-22 00:47:54 +01:00
android:layout_height="222dp"
android:layout_weight="1" />
2018-08-18 07:04:31 +02:00
<TextView
android:id="@+id/tittleVideoTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-01-23 22:40:41 +01:00
android:paddingStart="5dp"
2024-03-22 00:47:54 +01:00
android:textAppearance="@android:style/TextAppearance.Material.Display1"
2019-02-09 21:56:56 +01:00
android:textSize="18sp"
2018-08-18 07:04:31 +02:00
android:textStyle="bold" />
<TextView
android:id="@+id/viewsTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-11 00:45:51 +02:00
android:paddingLeft="5dp"
2019-01-23 22:40:41 +01:00
android:paddingRight="5dp"
2018-08-18 07:04:31 +02:00
android:textSize="12sp" />
2024-03-22 00:47:54 +01:00
<androidx.appcompat.widget.LinearLayoutCompat
2018-10-10 19:24:35 +02:00
android:id="@+id/actionsLayout"
2018-08-18 07:04:31 +02:00
android:layout_width="match_parent"
android:layout_height="50dp"
2018-10-10 19:24:35 +02:00
android:gravity="top"
2018-08-18 07:04:31 +02:00
android:orientation="horizontal"
2018-09-11 00:45:51 +02:00
android:visibility="gone">
2018-08-18 07:04:31 +02:00
2024-03-22 00:47:54 +01:00
<androidx.appcompat.widget.LinearLayoutCompat
2018-10-10 19:24:35 +02:00
android:id="@+id/likeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-08-18 07:04:31 +02:00
android:layout_weight="1"
android:orientation="vertical"
android:visibility="visible">
2018-10-10 19:24:35 +02:00
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-10-10 19:24:35 +02:00
android:layout_weight="1"
android:adjustViewBounds="false"
android:contentDescription="@string/likeBtn"
2018-10-10 19:24:35 +02:00
android:cropToPadding="false"
android:scaleType="center"
android:visibility="visible"
2018-10-10 19:24:35 +02:00
app:srcCompat="@drawable/ic_like" />
<TextView
2019-01-23 22:40:41 +01:00
android:id="@+id/textViewLike"
2018-10-10 19:24:35 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-10-10 19:24:35 +02:00
android:layout_weight="1"
android:text="@string/likeBtn"
android:textAlignment="center" />
2024-03-22 00:47:54 +01:00
</androidx.appcompat.widget.LinearLayoutCompat>
2018-10-10 19:24:35 +02:00
<LinearLayout
android:id="@+id/dislikeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-08-18 07:04:31 +02:00
android:layout_weight="1"
android:orientation="vertical"
android:visibility="visible">
2018-10-10 19:24:35 +02:00
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-10-10 19:24:35 +02:00
android:layout_weight="1"
android:adjustViewBounds="false"
android:contentDescription="@string/dislikeBtn"
2018-10-10 19:24:35 +02:00
android:cropToPadding="false"
android:visibility="visible"
2018-10-10 19:24:35 +02:00
app:srcCompat="@drawable/ic_dislike" />
<TextView
2019-01-23 22:40:41 +01:00
android:id="@+id/textViewDislike"
2018-10-10 19:24:35 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-10-10 19:24:35 +02:00
android:layout_weight="1"
android:text="@string/dislikeBtn"
android:textAlignment="center" />
</LinearLayout>
2018-08-18 07:04:31 +02:00
2019-02-25 03:53:40 +01:00
<LinearLayout
android:id="@+id/reportLayout"
android:layout_width="match_parent"
2019-02-25 03:53:40 +01:00
android:layout_height="match_parent"
2018-08-18 07:04:31 +02:00
android:layout_weight="1"
2019-02-25 03:53:40 +01:00
android:orientation="vertical"
android:visibility="visible">
<ImageView
android:id="@+id/imageViewAlert"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:adjustViewBounds="false"
android:contentDescription="@string/dislikeBtn"
android:cropToPadding="false"
android:visibility="visible"
app:srcCompat="@drawable/ic_alert" />
<TextView
android:id="@+id/textViewAlert"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/reportBtn"
android:textAlignment="center" />
</LinearLayout>
2018-08-18 07:04:31 +02:00
2019-02-25 03:53:40 +01:00
<LinearLayout
android:id="@+id/shareLayout"
android:layout_width="match_parent"
2019-02-25 03:53:40 +01:00
android:layout_height="match_parent"
2018-08-18 07:04:31 +02:00
android:layout_weight="1"
2019-02-25 03:53:40 +01:00
android:orientation="vertical"
android:visibility="visible">
<ImageView
android:id="@+id/imageViewShare"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:adjustViewBounds="false"
android:contentDescription="@string/dislikeBtn"
android:cropToPadding="false"
android:visibility="visible"
app:srcCompat="@drawable/ic_share" />
<TextView
android:id="@+id/textViewShare"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/shareBtn"
android:textAlignment="center" />
</LinearLayout>
2024-03-22 00:47:54 +01:00
</androidx.appcompat.widget.LinearLayoutCompat>
2018-08-18 07:04:31 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
2018-08-18 07:04:31 +02:00
android:layout_weight="1"
android:orientation="horizontal">
<ImageView
android:id="@+id/userImg"
android:layout_width="40dp"
android:layout_height="match_parent"
2018-08-18 07:04:31 +02:00
android:layout_margin="0dp"
android:layout_weight="1"
android:adjustViewBounds="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" />
2019-02-09 21:56:56 +01:00
<LinearLayout
android:layout_width="wrap_content"
2018-08-18 07:04:31 +02:00
android:layout_height="match_parent"
android:layout_weight="2"
2019-02-09 21:56:56 +01:00
android:orientation="vertical">
<TextView
android:id="@+id/userTxt"
2019-02-10 23:28:14 +01:00
android:layout_width="match_parent"
2019-02-09 21:56:56 +01:00
android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.Material.Large"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/hostTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="10sp"
android:textStyle="italic" />
</LinearLayout>
2018-08-18 07:04:31 +02:00
2024-03-22 00:47:54 +01:00
<com.google.android.material.button.MaterialButton
2018-08-18 07:04:31 +02:00
android:id="@+id/subscribeBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-10-10 19:24:35 +02:00
android:text="@string/subscribeBtn"
2019-02-09 21:56:56 +01:00
android:textSize="10sp"
2019-02-18 00:13:12 +01:00
android:visibility="invisible" />
2018-08-18 07:04:31 +02:00
</LinearLayout>
<TextView
android:id="@+id/descriptionTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-01-28 21:54:08 +01:00
android:maxLength="1000"
android:maxLines="100"
2018-09-11 00:45:51 +02:00
android:paddingLeft="5dp"
2019-02-18 00:13:12 +01:00
android:text="@string/descriptionTxt"
android:textStyle="bold" />
2018-08-18 07:04:31 +02:00
<TextView
android:id="@+id/descriptionVideoTxt"
2018-08-18 07:04:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-18 00:13:12 +01:00
android:layout_marginTop="2dp"
android:layout_marginBottom="2dp"
android:autoLink="web"
android:linksClickable="true"
android:maxLength="10000"
android:maxLines="100"
android:paddingLeft="10dp"
android:paddingRight="10dp" />
2018-08-18 07:04:31 +02:00
2024-03-22 00:47:54 +01:00
<com.google.android.material.button.MaterialButton
2019-02-18 00:13:12 +01:00
android:id="@+id/showMoreBtn"
2024-03-22 00:47:54 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2019-02-18 00:13:12 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/showMore"
2019-02-18 01:42:08 +01:00
android:visibility="gone" />
2019-02-18 00:13:12 +01:00
2018-08-18 07:04:31 +02:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />
2024-03-22 00:47:54 +01:00
<androidx.legacy.widget.Space
2019-01-28 21:54:08 +01:00
android:layout_width="match_parent"
2019-02-18 00:13:12 +01:00
android:layout_height="10dp"
android:layout_weight="1" />
2019-01-28 21:54:08 +01:00
2019-01-23 22:40:41 +01:00
<TextView
android:id="@+id/commentariesTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
2019-02-18 00:13:12 +01:00
android:text="@string/commentariesTxt"
android:textStyle="bold" />
2019-01-23 22:40:41 +01:00
2024-03-22 00:47:54 +01:00
<androidx.legacy.widget.Space
2019-01-28 21:54:08 +01:00
android:layout_width="match_parent"
android:layout_height="20dp" />
2024-03-22 00:47:54 +01:00
<androidx.appcompat.widget.LinearLayoutCompat
2019-01-25 19:30:48 +01:00
android:id="@+id/commentaryLayout"
2019-01-23 22:40:41 +01:00
android:layout_width="match_parent"
2019-01-28 21:54:08 +01:00
android:layout_height="wrap_content"
2019-01-25 19:30:48 +01:00
android:orientation="vertical"
2019-01-28 21:54:08 +01:00
android:visibility="gone">
2019-01-23 22:40:41 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
2019-01-25 19:30:48 +01:00
android:id="@+id/userImgCom"
android:layout_width="10dp"
android:layout_height="60dp"
2019-01-23 22:40:41 +01:00
android:layout_weight="1"
app:srcCompat="@drawable/default_avatar" />
<EditText
android:id="@+id/commentaryText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-01-25 19:30:48 +01:00
android:layout_weight="2"
2019-01-23 22:40:41 +01:00
android:ems="10"
android:hint="@string/commentHolder"
2019-01-23 22:40:41 +01:00
android:inputType="textMultiLine" />
</LinearLayout>
2024-03-22 00:47:54 +01:00
<com.google.android.material.button.MaterialButton
2019-01-25 19:30:48 +01:00
android:id="@+id/commentaryBtn"
2019-01-23 22:40:41 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/commentaryText" />
2024-03-22 00:47:54 +01:00
</androidx.appcompat.widget.LinearLayoutCompat>
2019-01-23 22:40:41 +01:00
2024-03-22 00:47:54 +01:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/listCommentaries"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-08-18 07:04:31 +02:00
</LinearLayout>
</ScrollView>
2024-03-22 00:47:54 +01:00
</androidx.constraintlayout.widget.ConstraintLayout>