home_layout_meditation_item.xml 2.23 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
范玉宾 committed
2 3
<FrameLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
4 5
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
范玉宾 committed
6 7 8 9 10
        android:id="@+id/fl_layout"
        android:layout_width="105dp"
        android:layout_height="102dp"
        android:layout_marginBottom="20dp"
        android:layout_marginEnd="12dp">
11 12 13 14 15 16 17 18 19

    <androidx.cardview.widget.CardView
            android:id="@+id/card_view"
            android:layout_width="105dp"
            android:layout_height="102dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
范玉宾 committed
20
            app:cardCornerRadius="8dp"
21 22 23 24
            app:cardElevation="0dp">

        <FrameLayout
                android:layout_width="match_parent"
范玉宾 committed
25
                android:layout_height="match_parent">
26 27 28

            <ImageView
                    android:id="@+id/iv_meditation_type"
范玉宾 committed
29 30 31 32
                    android:layout_width="105dp"
                    android:layout_height="102dp"
                    android:scaleType="centerCrop"/>

33 34 35 36 37
<!--            <View-->
<!--                    android:layout_width="match_parent"-->
<!--                    android:layout_height="30dp"-->
<!--                    android:background="#88000000"-->
<!--                    android:layout_gravity="bottom|start" />-->
38 39 40

            <TextView
                    android:id="@+id/tv_meditation_type"
41
                    android:layout_width="wrap_content"
42 43
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|start"
44 45
                    android:background="@drawable/bg_meditation_type"
                    tools:text="溪流溪流溪流溪流溪流"
范玉宾 committed
46 47
                    android:singleLine="true"
                    android:ellipsize="end"
48 49
                    android:textColor="@color/white"
                    android:textSize="14sp"
50 51
                    android:paddingHorizontal="6dp"
                    android:paddingVertical="5dp"/>
52 53 54 55 56

        </FrameLayout>

    </androidx.cardview.widget.CardView>

范玉宾 committed
57
</FrameLayout>