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
  • my_header_activity.xml
Find file
Normal viewHistoryPermalink
my_header_activity.xml 3.25 KB
Newer Older
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
1 2 3
<?xml version="1.0" encoding="utf-8"?>
<layout>

罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
4 5 6 7 8 9 10 11
    <data>

        <import type="android.text.TextUtils" />

        <import type="android.view.View" />

        <variable
            name="presenter"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
12
            type="com.dayu.usercenter.presenter.myhead.MyHeadPresenter" />
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
13 14
    </data>

罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/cl_home_listview_bg"
            android:orientation="vertical">

            <RelativeLayout
                android:id="@+id/title_idea"
                style="@style/title">

                <TextView
                    android:id="@+id/text_idea"
                    style="@style/text_title"
                    android:text="@string/title_my_header" />

                <ImageView
                    android:id="@+id/title_back"
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
37 38
                    style="@style/title_image_back"
                    />
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

                <TextView
                    android:id="@+id/tv_right_title"
                    style="@style/title_right_text"
                    android:text="@string/modify_header_iv"
                    android:textColor="#FF2D2D2D"
                    android:textSize="15sp" />

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_6"
                    android:layout_alignParentBottom="true"
                    android:src="@drawable/line_shape" />
            </RelativeLayout>
        </RelativeLayout>

        <ImageView
            android:id="@+id/iv_header"
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
57
            imageUrl="@{presenter.headUrl}"
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
58 59
            android:layout_width="match_parent"
            android:layout_height="375dp"
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
            android:layout_marginTop="50dp"
            android:visibility="@{TextUtils.isEmpty(presenter.headUrl)?View.GONE:View.VISIBLE}" />

        <LinearLayout
            android:id="@+id/ll_emptyview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical"
            android:visibility="@{TextUtils.isEmpty(presenter.headUrl)?View.VISIBLE:View.GONE}">

            <ImageView
                android:id="@+id/iv_empty"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:layout_centerVertical="true"
罗翻's avatar
完善用户模块
279c9f45
 
罗翻 committed 7 years ago
77
                android:src="@drawable/yu" />
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
78 79 80 81 82 83 84 85

            <TextView
                android:id="@+id/tv_empty"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/iv_empty"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="@dimen/dp_13"
罗翻's avatar
去除代码中的中文字
b61ecd3a
 
罗翻 committed 7 years ago
86
                android:text="@string/no_header"
罗翻's avatar
增加个人资料和修改头像页面
5a359247
 
罗翻 committed 7 years ago
87 88 89
                android:textColor="@color/cl_selector_hui"
                android:textSize="@dimen/sp_13.3" />
        </LinearLayout>
罗翻's avatar
将mvp替换成mvvm
875973da
 
罗翻 committed 7 years ago
90 91
    </LinearLayout>
</layout>