<?xml version="1.0" encoding="utf-8"?>
|
<android.support.design.widget.CoordinatorLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<android.support.v7.widget.CardView
|
android:id="@+id/cv_body"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginStart="@dimen/fab_margin"
|
android:layout_marginEnd="@dimen/fab_margin"
|
android:layout_marginTop="30dp"
|
android:layout_marginBottom="30dp"
|
android:padding="@dimen/dimen8"
|
app:cardElevation="@dimen/dimen8"
|
app:cardCornerRadius="@dimen/dimen6"
|
android:visibility="visible">
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<FrameLayout
|
android:id="@+id/custom_view"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent">
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<TextView
|
android:id="@+id/tv_title"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:text="已选场景"
|
android:textColor="@android:color/black"
|
android:textSize="@dimen/textSize_16"
|
android:padding="@dimen/dimen8"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
<TextView
|
android:id="@+id/tv_count"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:textColor="@android:color/black"
|
android:textSize="@dimen/textSize_16"
|
android:text="0个"
|
android:padding="@dimen/dimen8"
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="0.2dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:background="@android:color/darker_gray"/>
|
</android.support.constraint.ConstraintLayout>
|
</FrameLayout>
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_content"
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:padding="@dimen/dimen8"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/custom_view"
|
app:layout_constraintBottom_toBottomOf="parent">
|
</android.support.v7.widget.RecyclerView>
|
</android.support.constraint.ConstraintLayout>
|
|
</android.support.v7.widget.CardView>
|
|
<android.support.design.widget.FloatingActionButton
|
android:id="@+id/fab_close"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@drawable/icon_close_white"
|
app:fabSize="normal"
|
app:elevation="@dimen/dimen8"
|
app:layout_anchor="@id/cv_body"
|
app:layout_anchorGravity="center_horizontal|bottom"/>
|
|
</android.support.design.widget.CoordinatorLayout>
|