forked from GitHub-Mirror/riotX-android
109 lines
4.8 KiB
XML
109 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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="wrap_content"
|
|
app:layout_behavior="@string/bottom_sheet_behavior">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/bottom_sheet_message_preview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/bottom_sheet_message_preview_avatar"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_margin="@dimen/layout_horizontal_margin"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/avatar"
|
|
android:background="@drawable/circle"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_message_preview_sender"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif-bold"
|
|
android:singleLine="true"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_sheet_message_preview_avatar"
|
|
app:layout_constraintTop_toTopOf="@id/bottom_sheet_message_preview_avatar"
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/bottom_sheet_message_preview_body"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginBottom="@dimen/layout_vertical_margin"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textIsSelectable="false"
|
|
android:textSize="14sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_sheet_message_preview_avatar"
|
|
app:layout_constraintTop_toBottomOf="@id/bottom_sheet_message_preview_sender"
|
|
tools:text="Quis harum id autem cumque consequatur laboriosam aliquam sed. Sint accusamus dignissimos nobis ullam earum debitis aspernatur. " />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/vctr_list_divider_color" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bottom_sheet_quick_reaction_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/vctr_list_divider_color" />
|
|
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bottom_sheet_menu_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<!--<com.airbnb.epoxy.EpoxyRecyclerView-->
|
|
<!--android:visibility="invisible"-->
|
|
<!--android:id="@+id/bottom_sheet_actions_list"-->
|
|
<!--android:layout_width="match_parent"-->
|
|
<!--android:layout_height="match_parent"-->
|
|
<!--tools:itemCount="20"-->
|
|
<!--android:minHeight="80dp"-->
|
|
<!--tools:listitem="@layout/adapter_item_action">-->
|
|
|
|
<!--</com.airbnb.epoxy.EpoxyRecyclerView>-->
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|