riku
2020-08-21 0328eab9276e57487eb2cfff31a945a01dd8c73a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?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>