Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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.    android:orientation="vertical">
  8.  
  9.     <com.google.android.material.appbar.AppBarLayout
  10.        android:id="@+id/abl_lesson"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:background="@android:color/white"
  14.        android:elevation="1.5dp"
  15.        android:stateListAnimator="@null">
  16.  
  17.         <androidx.appcompat.widget.Toolbar
  18.            android:id="@+id/toolbar_lesson"
  19.            android:layout_width="match_parent"
  20.            android:layout_height="wrap_content"
  21.            app:titleTextColor="@color/colorPrimaryDark" />
  22.  
  23.     </com.google.android.material.appbar.AppBarLayout>
  24.  
  25.     <ScrollView
  26.        android:layout_width="match_parent"
  27.        android:layout_height="match_parent"
  28.        android:layout_below="@+id/abl_lesson"
  29.        android:layout_above="@+id/v_comment_divider"
  30.        android:fillViewport="true">
  31.  
  32.         <RelativeLayout
  33.            android:layout_width="match_parent"
  34.            android:layout_height="match_parent">
  35.  
  36.  
  37.             <LinearLayout
  38.                android:id="@+id/vg_lesson_header"
  39.                android:layout_width="match_parent"
  40.                android:layout_height="wrap_content"
  41.                android:orientation="vertical">
  42.  
  43.                 <TextView
  44.                    android:id="@+id/tv_lesson_name"
  45.                    android:layout_width="wrap_content"
  46.                    android:layout_height="wrap_content"
  47.                    android:layout_gravity="start|center"
  48.                    android:layout_marginStart="16dp"
  49.                    android:layout_marginTop="5dp"
  50.                    android:ellipsize="end"
  51.                    android:fontFamily="@font/lato_bold"
  52.                    android:maxLines="1"
  53.                    android:textColor="@color/colorPrimaryDark"
  54.                    android:textSize="@dimen/h7"
  55.                    tools:text="Course name" />
  56.  
  57.                 <com.google.android.exoplayer2.ui.SimpleExoPlayerView
  58.                    android:id="@+id/vv_lesson_video"
  59.                    android:layout_width="match_parent"
  60.                    android:layout_height="205dp"
  61.                    android:layout_marginTop="5dp"
  62.                    app:controller_layout_id="@layout/exo_custom_layout"
  63.                    app:resize_mode="fit"
  64.                    app:surface_type="texture_view" />
  65.  
  66.             </LinearLayout>
  67.  
  68.             <androidx.recyclerview.widget.RecyclerView
  69.                android:id="@+id/rv_lesson_comments"
  70.                android:layout_width="match_parent"
  71.                android:layout_height="match_parent"
  72.                android:layout_below="@+id/vg_lesson_header"
  73.                android:background="@color/colorGreyBackground"
  74.                tools:listitem="@layout/item_incoming_comment"
  75.                tools:visibility="visible" />
  76.  
  77.  
  78.         </RelativeLayout>
  79.     </ScrollView>
  80.  
  81.     <View
  82.        android:id="@+id/v_comment_divider"
  83.        android:layout_width="match_parent"
  84.        android:layout_height="1dp"
  85.        android:layout_above="@+id/vg_send_comment"
  86.        android:background="@color/colorGreyBackground" />
  87.  
  88.     <LinearLayout
  89.        android:id="@+id/vg_send_comment"
  90.        android:layout_width="match_parent"
  91.        android:layout_height="wrap_content"
  92.        android:layout_alignParentBottom="true">
  93.  
  94.         <FrameLayout
  95.            android:layout_width="wrap_content"
  96.            android:layout_height="wrap_content"
  97.            android:layout_gravity="bottom"
  98.            android:padding="10dp"
  99.            android:visibility="gone">
  100.  
  101.             <ImageView
  102.                android:id="@+id/iv_comment_attach"
  103.                android:layout_width="30dp"
  104.                android:layout_height="30dp"
  105.                android:background="?attr/selectableItemBackgroundBorderless"
  106.                android:src="@drawable/ic_slice_blue" />
  107.         </FrameLayout>
  108.  
  109.         <com.google.android.material.textfield.TextInputEditText
  110.            android:id="@+id/et_lesson_comment"
  111.            style="@style/Widget.MaterialComponents.TextInputEditText.OutlinedBox"
  112.            android:layout_width="0dp"
  113.            android:layout_height="wrap_content"
  114.            android:layout_gravity="center"
  115.            android:layout_weight="1"
  116.            android:background="@android:color/transparent"
  117.            android:fontFamily="@font/lato_medium"
  118.            android:hint="@string/type_your_message"
  119.            android:maxLines="5"
  120.            android:paddingStart="20dp"
  121.            android:paddingEnd="5dp"
  122.            android:textColor="@color/colorPrimaryDark"
  123.            android:textColorHint="@color/colorAccent" />
  124.  
  125.         <FrameLayout
  126.            android:layout_width="wrap_content"
  127.            android:layout_height="wrap_content"
  128.            android:layout_gravity="bottom"
  129.            android:padding="10dp">
  130.  
  131.             <ImageView
  132.                android:id="@+id/iv_comment_send"
  133.                android:layout_width="30dp"
  134.                android:layout_height="30dp"
  135.                android:background="?attr/selectableItemBackgroundBorderless"
  136.                android:padding="2dp"
  137.                android:src="@drawable/ic_send_blue" />
  138.         </FrameLayout>
  139.     </LinearLayout>
  140. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement