Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • userCenter
  • src
  • main
  • res
  • layout
  • fragment_personal_center.xml
Find file
Normal viewHistoryPermalink
fragment_personal_center.xml 14 KB
Newer Older
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
1 2 3
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

罗翻's avatar
dataBingding
2069dc7e
 
罗翻 committed 7 years ago
4 5 6 7
    <data>

        <variable
            name="presenter"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
8
            type="com.dayu.usercenter.presenter.homefourtab.HomePersonPresenter" />
罗翻's avatar
dataBingding
2069dc7e
 
罗翻 committed 7 years ago
9 10
    </data>

罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/cl_white"
        android:orientation="vertical"

        >

        <RelativeLayout
            style="@style/title"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_alignParentTop="true">

            <TextView
                style="@style/text_title"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
27
                android:text="@string/personal_center" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
28 29 30 31

            <ImageView
                android:id="@+id/iv_setting"
                style="@style/title_right_image"
罗翻's avatar
dataBingding
2069dc7e
 
罗翻 committed 7 years ago
32
                android:onClick="@{()->presenter.dumpToSetting()}"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
33
                android:src="@drawable/person_setting" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
34 35 36 37 38
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/person_one"
            android:layout_width="match_parent"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
39
            android:layout_height="wrap_content">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
40 41 42 43 44 45 46 47 48


            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:layout_alignParentTop="true"
                android:scaleType="fitXY"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
49
                android:src="@drawable/person_title_view" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
50

罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
51

罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
52
            <com.dayu.widgets.CircleImageView
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
53
                android:id="@+id/iv_header"
罗翻's avatar
增加个人资料
2c70eccd
 
罗翻 committed 7 years ago
54
                imageUrl="@{presenter.mUrl}"
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
55 56
                android:layout_width="86dp"
                android:layout_height="86dp"
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
57 58
                android:layout_centerHorizontal="true"
                android:layout_marginTop="83.3dp"
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
59
                android:onClick="@{()->presenter.dumpToPersonalInfo()}"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
60
                android:src="@drawable/user" />
罗翻's avatar
增加个人资料页面
db9ccdc4
 
罗翻 committed 7 years ago
61 62 63 64 65 66

            <ImageView
                android:layout_width="73dp"
                android:layout_height="20dp"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="149.3dp"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
67
                android:src="@drawable/head_shape" />
罗翻's avatar
增加个人资料页面
db9ccdc4
 
罗翻 committed 7 years ago
68 69 70 71 72 73

            <TextView
                android:layout_width="44dp"
                android:layout_height="15dp"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="149.3dp"
罗翻's avatar
去除代码中的中文字
b61ecd3a
 
罗翻 committed 7 years ago
74
                android:text="@string/personal_info"
罗翻's avatar
增加个人资料页面
db9ccdc4
 
罗翻 committed 7 years ago
75 76
                android:textColor="@color/white"
                android:textSize="11sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
77 78 79 80 81 82 83 84 85 86 87

            <TextView
                android:id="@+id/tv_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/iv_header"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="13.3dp"
                android:text="@string/tv_person_center_name"
                android:textColor="@color/cl_home_title_text_color"
                android:textSize="14.7sp"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
88
                android:textStyle="bold" />
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
89 90

            <ImageView
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
91
                android:id="@+id/iv_audited"
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
92 93 94 95 96 97
                android:layout_width="41dp"
                android:layout_height="14dp"
                android:layout_below="@id/iv_header"
                android:layout_marginLeft="2dp"
                android:layout_marginTop="17dp"
                android:layout_toRightOf="@id/tv_name"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
98
                android:src="@drawable/icon_authentication" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
99 100 101 102 103 104 105 106 107
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/persone_two"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/person_one"
            android:layout_centerHorizontal="true"
            android:layout_marginLeft="109dp"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
108
            android:layout_marginTop="9.3dp">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
109 110 111 112 113 114 115

            <TextView
                android:id="@+id/tv_sex"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/tv_person_center_sex_value"
                android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
116
                android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
117 118 119 120 121 122 123 124 125

            <TextView
                android:id="@+id/tv_age"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/dp_13"
                android:layout_toRightOf="@id/tv_sex"
                android:text="@string/tv_person_center_age_value"
                android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
126
                android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
127 128 129 130 131 132 133 134 135

            <TextView
                android:id="@+id/tv_phone"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/dp_13"
                android:layout_toRightOf="@id/tv_age"
                android:text="@string/tv_person_center_phone"
                android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
136
                android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
137 138 139 140 141 142 143 144 145 146 147
        </RelativeLayout>

        <TextView
            android:id="@+id/tv_score"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/persone_two"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="10dp"
            android:text="@string/zero_score"
            android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
148
            android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
149 150 151 152 153 154 155 156 157

        <LinearLayout
            android:id="@+id/tv_star"
            android:layout_width="90dp"
            android:layout_height="wrap_content"
            android:layout_below="@id/tv_score"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="8dp"
            android:orientation="horizontal"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
158
            android:padding="6dp"></LinearLayout>
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
159 160 161 162 163 164 165 166

        <ImageView
            android:id="@+id/person_line"
            android:layout_width="293.3dp"
            android:layout_height="0.6dp"
            android:layout_below="@id/tv_star"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="10dp"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
167
            android:background="@color/cl_work_raiod" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
168 169 170 171 172 173 174 175 176 177 178 179 180 181

        <LinearLayout
            android:id="@+id/linearLayout_evaluate2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/person_line"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="20dp"
            android:orientation="horizontal">

            <RelativeLayout
                android:id="@+id/linearLayout_evaluate"
                android:layout_width="160dp"
                android:layout_height="100dp"
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
182 183
                android:layout_below="@id/person_line"
                android:background="@drawable/personal_center_selector">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
184 185 186 187 188 189 190 191 192

                <TextView
                    android:id="@+id/text_today_yeji"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_16.7"
                    android:text="@string/tv_person_center_jinriyeji"
                    android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
193
                    android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
194 195 196 197 198 199 200 201 202 203 204

                <TextView
                    android:id="@+id/tv_achivement"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/text_today_yeji"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_15"
                    android:text="0"
                    android:textColor="@color/cl_tab_yellow"
                    android:textSize="30sp"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
205
                    android:typeface="@{@string/tv_fonts}" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
206 207 208 209 210 211 212 213
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/rl_account_balcance"
                android:layout_width="160dp"
                android:layout_height="100dp"
                android:layout_marginLeft="@dimen/dp_13.3"
                android:background="@drawable/personal_center_selector"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
214
                android:onClick="@{()->presenter.dumpToAccount()}">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
215 216 217 218 219 220 221 222 223

                <TextView
                    android:id="@+id/text_today_jiedan"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_16.7"
                    android:text="@string/tv_person_center_jinrijiedan"
                    android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
224
                    android:textSize="12sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
225 226 227 228 229 230 231 232 233 234 235 236

                <TextView
                    android:id="@+id/tv_account_balance"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/text_today_jiedan"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_15"
                    android:gravity="center_horizontal"
                    android:text="0"
                    android:textColor="@color/cl_tab_yellow"
                    android:textSize="30sp"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
237
                    android:typeface="@{@string/tv_fonts}" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
238 239 240 241 242 243 244 245 246 247

                <LinearLayout
                    android:id="@+id/ll_todaybalance"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="113.3dp"
                    android:layout_marginTop="36.7dp"
                    android:background="@drawable/btn_red_react"
                    android:gravity="center"
                    android:orientation="horizontal"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
248
                    android:visibility="gone">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
249 250 251 252 253 254 255 256

                    <TextView
                        android:id="@+id/tv_todaybalance"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:paddingLeft="3.67dp"
                        android:paddingRight="1dp"
                        android:textColor="#ff5a4b"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
257
                        android:textSize="10sp" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
258 259 260 261 262

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:paddingRight="3.67dp"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
263
                        android:src="@drawable/img_arrow_red_up" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
                </LinearLayout>
            </RelativeLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/linearLayout_evaluate2"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="10dp"
            android:orientation="horizontal">

            <RelativeLayout
                android:layout_width="160dp"
                android:layout_height="100dp"
                android:background="@drawable/personal_center_selector">

                <TextView
                    android:id="@+id/text_leiji"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_16.7"
                    android:text="@string/tv_person_center_leijiyeji"
                    android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
289
                    android:textSize="@dimen/sp_12" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
290 291 292 293 294 295 296 297 298 299 300

                <TextView
                    android:id="@+id/tv_all_achivement"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/text_leiji"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_14.3"
                    android:text="0"
                    android:textColor="@color/cl_tab_yellow"
                    android:textSize="@dimen/sp_30"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
301
                    android:typeface="@{@string/tv_fonts}" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
302 303 304 305 306 307 308
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/rl_order_record"
                android:layout_width="160dp"
                android:layout_height="100dp"
                android:layout_marginLeft="@dimen/dp_13.3"
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
309 310
                android:background="@drawable/personal_center_selector"
                android:onClick="@{()->presenter.dumpToOrderRecord()}">
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
311 312 313 314 315 316 317 318 319

                <TextView
                    android:id="@+id/text_gongdan"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_16.7"
                    android:text="@string/tv_person_center_gongdanjilu"
                    android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
320
                    android:textSize="@dimen/sp_12" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
321 322 323 324 325 326 327 328 329 330 331

                <TextView
                    android:id="@+id/tv_order_record"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/text_gongdan"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="@dimen/dp_14.3"
                    android:text="0"
                    android:textColor="@color/cl_tab_yellow"
                    android:textSize="@dimen/sp_30"
罗翻's avatar
消息模块增加mvvm模式
4ffdfe68
 
罗翻 committed 7 years ago
332
                    android:typeface="@{@string/tv_fonts}" />
罗翻's avatar
去除butternife,使用databingding
a0d4cd6a
 
罗翻 committed 7 years ago
333 334 335 336 337
            </RelativeLayout>
        </LinearLayout>

    </RelativeLayout>
</layout>