ct_account_auth_activity.xml
6.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0" encoding="utf-8"?>
<!--
登录界面的布局文件
注意:
1.请修改App Logo和APP Name
2.天翼账号品牌标识必须显示,并且不可修改文字和icon
3.必须显示登录按钮、天翼账号服务与隐私协议
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="cn.com.chinatelecom.account.sdk.ui.AuthActivity">
<!-- 头部导航栏布局 -->
<RelativeLayout
android:id="@+id/title_bar_layout"
android:layout_width="match_parent"
android:layout_height="45dp">
<ImageView
android:id="@+id/ct_account_nav_goback"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:visibility="visible"
android:scaleType="center"
android:src="@drawable/ct_account_auth_goback_selector"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:singleLine="true"
android:textSize="20sp"
android:textColor="#FF000000"
android:text="免密登录"
/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_alignParentBottom="true"
android:background="#33000000"/>
</RelativeLayout>
<!-- APP LOGO -->
<RelativeLayout
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="60dp">
<!-- 登录界面Logo(需替换为接入方的APP LOGO)-->
<ImageView
android:id="@+id/ct_account_app_logo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ct_logo_image"
android:scaleType="fitXY"
/>
<!-- Logo遮罩(可替换、可隐藏):1.原型遮罩ct_account_logo_circle_shade 2.圆角遮罩 ct_account_logo_corner_shade-->
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ct_account_logo_circle_shade"
/>
</RelativeLayout>
<!-- 显示用户的手机脱敏号码,若获取失败,将显示“以本机号码登录”-->
<TextView
android:id="@+id/ct_account_desensphone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_gravity="center_horizontal"
android:text="189****9999"
android:textColor="#FF000000"
android:textSize="20sp"
/>
<!-- 天翼账号品牌标识,该控件的logo图标和文本文字不可修改,必须按规范显示-->
<TextView
android:id="@+id/ct_account_brand_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:layout_marginLeft="20dp"
android:textSize="11sp"
android:layout_gravity="center_horizontal"
android:textColor="#66000000"
android:drawableLeft="@drawable/ct_account_brand_logo"
android:text="@string/ct_account_brand_text"
/>
<LinearLayout
android:id="@+id/ct_account_login_btn"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="12dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/ct_account_auth_loginbtn_selector"
android:gravity="center">
<ImageView
android:id="@+id/ct_account_login_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ct_account_login_loading_icon"
android:scaleType="center"
android:visibility="gone"
/>
<TextView
android:id="@+id/ct_account_login_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="本机号码一键登录"
android:textSize="16sp"
android:textColor="#FFFFFFFF"/>
</LinearLayout>
<TextView
android:id="@+id/ct_account_other_login_way"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_gravity="center_horizontal"
android:padding="5dp"
android:text="其他登录方式"
android:textSize="14sp"
android:textColor="@color/ct_account_other_text_selector"
/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<!-- 必须显示服务与隐私协议 -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_marginBottom="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp">
<CheckBox
android:id="@+id/ct_auth_privacy_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:button="@drawable/ct_account_auth_privacy_checkbox"
android:checked="true"/>
<!-- 底部隐私协议文本配置说明:
1. 请将[应用名]替换为您应用的App Name
2. 文案的前面部分"登录即同意《天翼账号服务与隐私协议》"不可修改
3. 文案中《天翼账号服务与隐私协议》的色值通过android:tag属性设置,点击事件由SDK处理。
4. 文案内容必须按接入规范设置
-->
<TextView
android:id="@+id/ct_auth_privacy_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/ct_auth_privacy_checkbox"
android:layout_marginLeft="4dp"
android:text="登录即同意《天翼账号服务与隐私协议》并授权[应用名]获取本机号码"
android:textColor="#FF000000"
android:tag="#FF0090FF"
android:textSize="12sp"/>
</RelativeLayout>
</LinearLayout>