233 lines
9.3 KiB
XML
233 lines
9.3 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">
|
|
|
|
<ScrollView
|
|
android:layout_width="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<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">
|
|
|
|
</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: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="40dp"
|
|
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">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="false"
|
|
android:cropToPadding="false"
|
|
app:srcCompat="@drawable/ic_like" />
|
|
|
|
<TextView
|
|
android:id="@+id/textViewLike"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="false"
|
|
android:cropToPadding="false"
|
|
app:srcCompat="@drawable/ic_dislike" />
|
|
|
|
<TextView
|
|
android:id="@+id/textViewDislike"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/dislikeBtn"
|
|
android:textAlignment="center" />
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/button4"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/shareBtn"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/button3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/reportBtn"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/userImg"
|
|
android:layout_width="40dp"
|
|
android:layout_height="50dp"
|
|
android:layout_margin="0dp"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="false"
|
|
android:cropToPadding="false"
|
|
android:padding="5dp"
|
|
android:scaleType="centerInside"
|
|
app:srcCompat="@drawable/default_avatar" />
|
|
|
|
<TextView
|
|
android:id="@+id/userTxt"
|
|
android:layout_width="70dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="2"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Large"
|
|
android:textColor="@android:color/black" />
|
|
|
|
<Button
|
|
android:id="@+id/subscribeBtn"
|
|
style="@android:style/Widget.Holo.Button.Small"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/subscribeBtn"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/descriptionTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dp"
|
|
android:text="@string/descriptionTxt" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp">
|
|
|
|
<TextView
|
|
android:id="@+id/descriptionVideoTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none|textLongMessage"
|
|
android:maxLength="1000"
|
|
android:maxLines="10"
|
|
android:text="-"
|
|
android:textStyle="italic" />
|
|
</ScrollView>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?android:attr/listDivider" />
|
|
|
|
<TextView
|
|
android:id="@+id/commentariesTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dp"
|
|
android:text="@string/commentariesTxt" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView3"
|
|
android:layout_width="40dp"
|
|
android:layout_height="50dp"
|
|
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="1"
|
|
android:ems="10"
|
|
android:inputType="textMultiLine" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/button2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="@string/commentaryText" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</android.support.constraint.ConstraintLayout> |