Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout 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"
- android:orientation="vertical">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/abl_lesson"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:elevation="1.5dp"
- android:stateListAnimator="@null">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar_lesson"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:titleTextColor="@color/colorPrimaryDark" />
- </com.google.android.material.appbar.AppBarLayout>
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/abl_lesson"
- android:layout_above="@+id/v_comment_divider"
- android:fillViewport="true">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:id="@+id/vg_lesson_header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/tv_lesson_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="start|center"
- android:layout_marginStart="16dp"
- android:layout_marginTop="5dp"
- android:ellipsize="end"
- android:fontFamily="@font/lato_bold"
- android:maxLines="1"
- android:textColor="@color/colorPrimaryDark"
- android:textSize="@dimen/h7"
- tools:text="Course name" />
- <com.google.android.exoplayer2.ui.SimpleExoPlayerView
- android:id="@+id/vv_lesson_video"
- android:layout_width="match_parent"
- android:layout_height="205dp"
- android:layout_marginTop="5dp"
- app:controller_layout_id="@layout/exo_custom_layout"
- app:resize_mode="fit"
- app:surface_type="texture_view" />
- </LinearLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_lesson_comments"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/vg_lesson_header"
- android:background="@color/colorGreyBackground"
- tools:listitem="@layout/item_incoming_comment"
- tools:visibility="visible" />
- </RelativeLayout>
- </ScrollView>
- <View
- android:id="@+id/v_comment_divider"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_above="@+id/vg_send_comment"
- android:background="@color/colorGreyBackground" />
- <LinearLayout
- android:id="@+id/vg_send_comment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true">
- <FrameLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:padding="10dp"
- android:visibility="gone">
- <ImageView
- android:id="@+id/iv_comment_attach"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:src="@drawable/ic_slice_blue" />
- </FrameLayout>
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/et_lesson_comment"
- style="@style/Widget.MaterialComponents.TextInputEditText.OutlinedBox"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:background="@android:color/transparent"
- android:fontFamily="@font/lato_medium"
- android:hint="@string/type_your_message"
- android:maxLines="5"
- android:paddingStart="20dp"
- android:paddingEnd="5dp"
- android:textColor="@color/colorPrimaryDark"
- android:textColorHint="@color/colorAccent" />
- <FrameLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:padding="10dp">
- <ImageView
- android:id="@+id/iv_comment_send"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:padding="2dp"
- android:src="@drawable/ic_send_blue" />
- </FrameLayout>
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement