home_button_banner_view.xml 5.42 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4 5 6
    android:id="@+id/ll_home_module_button"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
7 8 9 10 11 12 13
    android:layout_marginTop="17dp"
    android:orientation="vertical">

    <com.yidianling.home.ui.widget.HomeModuleCategoryView
        android:id="@+id/home_category_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
14 15 16 17

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
18 19 20
        android:layout_marginLeft="4dp"
        android:layout_marginTop="15dp"
        android:layout_marginRight="4dp"
21
        android:gravity="center_horizontal|bottom"
严久程 committed
22 23
        android:orientation="horizontal"
        android:paddingBottom="12dp">
24

ydl committed
25
        <LinearLayout
26 27
            android:id="@+id/homeModuleButtonBannerFirst"
            android:layout_width="0dp"
ydl committed
28
            android:layout_height="wrap_content"
29
            android:layout_weight="1"
30 31
            android:gravity="center"
            android:orientation="vertical">
32

ydl committed
33
            <ImageView
34 35 36 37
                android:layout_width="52dp"
                android:layout_height="52dp"
                android:scaleType="fitXY"
                android:src="@drawable/home_banner_first_icon" />
38 39 40 41

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
42 43
                android:layout_marginTop="6dp"
                android:text="心理咨询"
ydl committed
44
                android:textColor="@color/platform_color_242424"
45 46
                android:textSize="13dp"
                android:textStyle="bold" />
ydl committed
47
        </LinearLayout>
48

ydl committed
49
        <LinearLayout
50 51
            android:id="@+id/homeModuleButtonBannerFourth"
            android:layout_width="0dp"
ydl committed
52
            android:layout_height="wrap_content"
严久程 committed
53
            android:layout_weight="1"
54 55
            android:gravity="center"
            android:orientation="vertical">
56

ydl committed
57 58
            <ImageView
                android:layout_width="54dp"
59 60 61
                android:layout_height="52dp"
                android:scaleType="fitXY"
                android:src="@drawable/home_banner_fourth_icon" />
62 63 64 65

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
66
                android:layout_marginTop="6dp"
ydl committed
67 68
                android:text="心理测试"
                android:textColor="@color/platform_color_242424"
69 70
                android:textSize="13dp"
                android:textStyle="bold" />
ydl committed
71
        </LinearLayout>
72

73
        <androidx.constraintlayout.widget.ConstraintLayout
74 75
            android:id="@+id/homeModuleButtonBannerThird"
            android:layout_width="0dp"
ydl committed
76
            android:layout_height="wrap_content"
77
            android:layout_weight="1"
78 79
            android:gravity="center"
            android:orientation="vertical">
80

ydl committed
81
            <ImageView
82
                android:id="@+id/third_icon"
83 84
                android:layout_width="71dp"
                android:layout_height="64dp"
85
                android:paddingLeft="7dp"
86 87
                android:paddingTop="12dp"
                android:paddingRight="12dp"
88
                android:scaleType="fitXY"
ydl committed
89
                android:src="@drawable/home_banner_third_icon"
90 91 92
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toTopOf="parent" />
93

94 95 96 97 98

            <ImageView
                android:id="@+id/qingsuGif"
                android:layout_width="45dp"
                android:layout_height="24dp"
99 100 101 102 103 104 105 106 107
                app:layout_constraintRight_toRightOf="@id/third_icon"
                app:layout_constraintTop_toTopOf="@id/third_icon" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/third_icon"
                android:layout_marginTop="6dp"
                android:text="倾诉热线"
ydl committed
108
                android:textColor="@color/platform_color_242424"
109 110 111 112 113 114
                android:textSize="13dp"
                android:textStyle="bold"
                app:layout_constraintLeft_toLeftOf="@id/third_icon"
                app:layout_constraintRight_toRightOf="@id/third_icon"
                app:layout_constraintTop_toBottomOf="@id/third_icon" />
        </androidx.constraintlayout.widget.ConstraintLayout>
115

ydl committed
116
        <LinearLayout
117 118
            android:id="@+id/homeModuleButtonBannerSecond"
            android:layout_width="0dp"
ydl committed
119
            android:layout_height="wrap_content"
120
            android:layout_weight="1"
121 122
            android:gravity="center"
            android:orientation="vertical">
123

ydl committed
124
            <ImageView
125 126 127 128
                android:layout_width="52dp"
                android:layout_height="52dp"
                android:scaleType="fitXY"
                android:src="@drawable/home_banner_second_icon" />
严久程 committed
129 130

            <TextView
131 132
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
133 134
                android:layout_marginTop="6dp"
                android:text="心理问答"
ydl committed
135
                android:textColor="@color/platform_color_242424"
136 137
                android:textSize="13dp"
                android:textStyle="bold" />
ydl committed
138
        </LinearLayout>
139 140

    </LinearLayout>
ydl committed
141

142
</LinearLayout>