Advertisement
AzisMM

activity_detai_video_kajian.xml

Nov 1st, 2021
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 4.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     tools:context=".menus.videokajian.DetailVideoKajianActivity">
  8.  
  9.     <androidx.constraintlayout.widget.ConstraintLayout
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content">
  12.  
  13.         <com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView
  14.             android:id="@+id/player_video"
  15.             android:layout_width="match_parent"
  16.             android:layout_height="250dp"
  17.             app:autoPlay="false"
  18.             app:layout_constraintEnd_toEndOf="parent"
  19.             app:layout_constraintStart_toStartOf="parent"
  20.             app:layout_constraintTop_toTopOf="parent"/>
  21.  
  22.         <androidx.appcompat.widget.AppCompatTextView
  23.             android:id="@+id/tv_channel"
  24.             android:layout_width="0dp"
  25.             android:layout_height="wrap_content"
  26.             android:layout_marginLeft="16dp"
  27.             android:layout_marginTop="8dp"
  28.             android:layout_marginRight="24dp"
  29.             android:ellipsize="end"
  30.             android:fontFamily="@font/poppins_light"
  31.             android:lines="1"
  32.             android:maxLines="1"
  33.             android:textColor="@color/colorGreyChannel"
  34.             app:layout_constraintEnd_toStartOf="@id/iv_share"
  35.             app:layout_constraintStart_toStartOf="parent"
  36.             app:layout_constraintTop_toBottomOf="@id/player_video"/>
  37.  
  38.         <androidx.appcompat.widget.AppCompatTextView
  39.             android:id="@+id/tv_speaker"
  40.             android:layout_width="0dp"
  41.             android:layout_height="wrap_content"
  42.             android:layout_marginLeft="16dp"
  43.             android:layout_marginRight="24dp"
  44.             android:ellipsize="end"
  45.             android:fontFamily="@font/poppins_medium"
  46.             android:lines="1"
  47.             android:maxLines="1"
  48.             android:textColor="@color/colorPrimary"
  49.             app:layout_constraintEnd_toStartOf="@id/iv_share"
  50.             app:layout_constraintStart_toStartOf="parent"
  51.             app:layout_constraintTop_toBottomOf="@id/tv_channel"/>
  52.  
  53.         <androidx.appcompat.widget.AppCompatTextView
  54.             android:id="@+id/tv_title"
  55.             android:layout_width="0dp"
  56.             android:layout_height="wrap_content"
  57.             android:layout_marginLeft="16dp"
  58.             android:layout_marginRight="24dp"
  59.             android:ellipsize="end"
  60.             android:fontFamily="@font/poppins_medium"
  61.             android:lines="1"
  62.             android:maxLines="1"
  63.             android:textColor="@color/colorDarkGrey"
  64.             app:layout_constraintEnd_toStartOf="@id/iv_share"
  65.             app:layout_constraintStart_toStartOf="parent"
  66.             app:layout_constraintTop_toBottomOf="@id/tv_speaker"/>
  67.  
  68.         <androidx.appcompat.widget.AppCompatImageView
  69.             android:id="@+id/iv_share"
  70.             android:layout_width="50dp"
  71.             android:layout_height="50dp"
  72.             android:layout_marginEnd="24dp"
  73.             android:padding="14dp"
  74.             android:src="@drawable/ic_baseline_share_24"
  75.             app:layout_constraintBottom_toBottomOf="@id/tv_title"
  76.             app:layout_constraintEnd_toEndOf="parent"
  77.             app:layout_constraintTop_toTopOf="@id/tv_channel"/>
  78.  
  79.         <View
  80.             android:id="@+id/divider"
  81.             android:layout_width="match_parent"
  82.             android:layout_height="3dp"
  83.             android:layout_marginTop="16dp"
  84.             android:background="@color/colorGrey"
  85.             app:layout_constraintTop_toBottomOf="@id/tv_title"/>
  86.  
  87.         <androidx.appcompat.widget.AppCompatTextView
  88.             android:id="@+id/tv_summary"
  89.             android:layout_width="match_parent"
  90.             android:layout_height="wrap_content"
  91.             android:layout_marginHorizontal="16dp"
  92.             android:layout_marginTop="16dp"
  93.             android:fontFamily="@font/poppins_medium"
  94.             android:textColor="@color/colorDarkGrey"
  95.             android:textSize="16sp"
  96.             app:layout_constraintEnd_toEndOf="parent"
  97.             app:layout_constraintStart_toStartOf="parent"
  98.             app:layout_constraintTop_toBottomOf="@id/divider"/>
  99.  
  100.     </androidx.constraintlayout.widget.ConstraintLayout>
  101.  
  102. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement