343 lines
14 KiB
XML
343 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
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">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/fullScreen"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentRight="true"
|
|
android:visibility="gone" />
|
|
|
|
<ScrollView
|
|
android:id="@+id/nonFullScreen"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<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"
|
|
android:layout_height="270dp"
|
|
android:layout_weight="1">
|
|
|
|
</WebView>
|
|
|
|
<TextView
|
|
android:id="@+id/tittleVideoTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="5dp"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Large"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/viewsTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textSize="12sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionsLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:gravity="top"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/likeLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="false"
|
|
android:contentDescription="@string/likeBtn"
|
|
android:cropToPadding="false"
|
|
android:scaleType="center"
|
|
android:visibility="visible"
|
|
app:srcCompat="@drawable/ic_like" />
|
|
|
|
<TextView
|
|
android:id="@+id/textViewLike"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="@string/likeBtn"
|
|
android:textAlignment="center" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dislikeLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView2"
|
|
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_dislike" />
|
|
|
|
<TextView
|
|
android:id="@+id/textViewDislike"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="@string/dislikeBtn"
|
|
android:textAlignment="center" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/reportLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/shareLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
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>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/userImg"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="0dp"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="false"
|
|
android:cropToPadding="false"
|
|
android:padding="5dp"
|
|
android:scaleType="fitCenter"
|
|
app:srcCompat="@drawable/default_avatar" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="2"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/userTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Large"
|
|
android:textColor="@android:color/black"
|
|
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>
|
|
|
|
<Button
|
|
android:id="@+id/subscribeBtn"
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/subscribeBtn"
|
|
android:textSize="10sp"
|
|
android:visibility="invisible" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/descriptionTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLength="1000"
|
|
android:maxLines="100"
|
|
android:paddingLeft="5dp"
|
|
android:text="@string/descriptionTxt"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/descriptionVideoTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
|
|
<Button
|
|
android:id="@+id/showMoreBtn"
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/showMore"
|
|
android:visibility="gone" />
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?android:attr/listDivider" />
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"
|
|
android:layout_weight="1" />
|
|
|
|
<TextView
|
|
android:id="@+id/commentariesTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dp"
|
|
android:text="@string/commentariesTxt"
|
|
android:textStyle="bold" />
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/commentaryLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/userImgCom"
|
|
android:layout_width="10dp"
|
|
android:layout_height="60dp"
|
|
android:layout_weight="1"
|
|
app:srcCompat="@drawable/default_avatar" />
|
|
|
|
<EditText
|
|
android:id="@+id/commentaryText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:ems="10"
|
|
android:hint="@string/commentHolder"
|
|
android:inputType="textMultiLine" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/commentaryBtn"
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="@string/commentaryText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v7.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" />
|
|
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</android.support.constraint.ConstraintLayout> |