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
  • forget_pwd_layout.xml
Find file
Normal viewHistoryPermalink
forget_pwd_layout.xml 4.67 KB
Newer Older
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
1
<?xml version="1.0" encoding="utf-8"?>
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
2 3 4 5 6 7 8 9 10
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <variable
            name="presenter"
            type="com.dayu.usercenter.presenter.forgetpwd.ForgetPwdPresenter" />
    </data>
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
11 12 13 14 15 16

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
17 18 19 20 21 22
        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:navigationIcon="@drawable/back_btn_normal">
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
23 24 25

            <TextView
                android:id="@+id/tv_title"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
26 27
                style="@style/toolbar_title" />
        </android.support.v7.widget.Toolbar>
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
28 29 30 31 32 33

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginTop="8dp"
            android:background="@color/white"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
34 35 36
            android:gravity="center_vertical"
            android:paddingLeft="15dp"
            android:paddingRight="15dp">
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
37 38 39 40 41 42 43 44 45 46 47 48 49 50

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="64dp"
                android:text="@string/sms_86"
                android:textColor="@color/default_text_color"
                android:textSize="15sp" />

            <EditText
                android:id="@+id/mobile"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
51
                android:background="@null"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
52 53
                android:hint="@string/tv_login_phone_editext_hint"
                android:inputType="phone"
罗翻's avatar
压缩图片,升级环信sdk
12dbb195
 
罗翻 committed 6 years ago
54
                android:maxLength="11"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
                android:text="@={presenter.phoneNume}"
                android:textColor="@color/default_text_color"
                android:textSize="15sp" />
        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="3dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:background="@color/white"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
70 71 72
            android:gravity="center_vertical"
            android:paddingLeft="15dp"
            android:paddingRight="15dp">
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="40dp"
                android:text="@string/sms_code"
                android:textColor="@color/default_text_color"
                android:textSize="15sp" />

            <EditText
                android:id="@+id/code"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_weight="1"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
88
                android:background="@null"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
                android:hint="@string/input_sms_code"
                android:inputType="number"
                android:text="@={presenter.code}"
                android:textColor="@color/default_text_color"
                android:textSize="15sp" />

            <View
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="@color/cl_line" />

            <TextView
                android:id="@+id/get_code"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:alpha="0.35"
                android:onClick="@{()->presenter.sendCode()}"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
107
                android:text="@string/tv_login_register_button_text"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
108 109 110 111 112 113 114 115 116 117 118 119 120 121
                android:textColor="@color/bg_button" />
        </LinearLayout>

        <TextView
            android:id="@+id/next"
            android:layout_width="match_parent"
            android:layout_height="47dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_marginTop="25dp"
            android:alpha="0.35"
            android:background="@drawable/tab_blue_react"
            android:gravity="center"
            android:onClick="@{()->presenter.next()}"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
20108deb
 
罗翻 committed 6 years ago
122
            android:text="@string/next_step"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
123 124 125 126
            android:textColor="@color/white"
            android:textSize="16sp" />
    </LinearLayout>
</layout>