Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
fa6bb25f
Commit
fa6bb25f
authored
Jan 14, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:ui修改
parent
3244fadf
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
24 deletions
+28
-24
InputPassWordActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
+2
-2
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+5
-5
user_ic_del_new.webp
m-user/src/main/res/drawable-xhdpi/user_ic_del_new.webp
+0
-0
user_activity_input_password_new.xml
m-user/src/main/res/layout/user_activity_input_password_new.xml
+9
-6
user_activity_register_and_login_new.xml
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
+8
-7
user_activity_verification_code_new.xml
m-user/src/main/res/layout/user_activity_verification_code_new.xml
+1
-1
user_kefu_tipdialog.xml
m-user/src/main/res/layout/user_kefu_tipdialog.xml
+3
-3
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
View file @
fa6bb25f
...
...
@@ -241,11 +241,11 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
*/
private
fun
switchPwdShowType
()
{
if
(
iv_visibility
.
isSelected
)
{
iv_visibility
.
setImageResource
(
R
.
drawable
.
user_ic_visibility
)
iv_visibility
.
setImageResource
(
R
.
drawable
.
user_ic_visibility
_new
)
et_input_password
.
transformationMethod
=
HideReturnsTransformationMethod
.
getInstance
()
et_input_password
.
hint
=
"当前密码可见"
}
else
{
iv_visibility
.
setImageResource
(
R
.
drawable
.
user_ic_invisibility
)
iv_visibility
.
setImageResource
(
R
.
drawable
.
user_ic_invisibility
_new
)
et_input_password
.
transformationMethod
=
PasswordTransformationMethod
.
getInstance
()
et_input_password
.
hint
=
"当前密码不可见"
}
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
fa6bb25f
...
...
@@ -352,20 +352,20 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
val
privacyOnOffType
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
protocol_android
?:
2
val
channel
=
WalleChannelReader
.
getChannel
(
applicationContext
)
if
(
channel
==
"huawei"
){
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
)
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
_new
)
}
else
if
(
privacyOnOffType
==
2
&&
(
channel
==
"vivo"
)){
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
)
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
_new
)
}
else
{
isAgreeProtocol
=
true
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
)
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
_new
)
}
iv_select_protocol
.
setOnClickListener
{
if
(
iv_select_protocol
.
visibility
==
View
.
VISIBLE
)
{
isAgreeProtocol
=
!
isAgreeProtocol
if
(
isAgreeProtocol
)
{
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
)
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
_new
)
}
else
{
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
)
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
_new
)
}
}
}
...
...
m-user/src/main/res/drawable-xhdpi/user_ic_del_new.webp
0 → 100644
View file @
fa6bb25f
File added
m-user/src/main/res/layout/user_activity_input_password_new.xml
View file @
fa6bb25f
...
...
@@ -28,12 +28,13 @@
<EditText
android:id=
"@+id/et_input_password"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
app:layout_constraintTop_toBottomOf=
"@id/tv_password_orSet_title"
android:layout_marginTop=
"100dp"
app:layout_constraintLeft_toLeftOf=
"@id/tv_password_orSet_title"
app:layout_constraintStart_toStartOf=
"@id/tv_password_orSet_title"
app:layout_constraintEnd_toStartOf=
"@id/iv_visibility"
android:layout_weight=
"1"
android:background=
"@null"
android:digits=
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
...
...
@@ -84,7 +85,7 @@
android:textSize=
"13sp"
app:layout_constraintTop_toBottomOf=
"@id/view_lin"
app:layout_constraintStart_toStartOf=
"@id/view_lin"
android:layout_marginTop=
"@dimen/platform_dp_1
5
"
android:layout_marginTop=
"@dimen/platform_dp_1
2
"
android:id=
"@+id/tv_msm_login"
>
</TextView>
...
...
@@ -127,14 +128,16 @@
android:gravity=
"center"
android:textColor=
"@color/white"
android:text=
"登录"
android:textSize=
"1
5
sp"
android:textSize=
"1
7
sp"
android:id=
"@+id/login_password"
android:background=
"@drawable/login_password_unable_bg_24dp"
android:paddingTop=
"@dimen/platform_dp_14"
android:paddingBottom=
"@dimen/platform_dp_14"
app:layout_constraintTop_toBottomOf=
"@id/tv_msm_login"
app:layout_constraintStart_toStartOf=
"@id/tv_msm_login"
app:layout_constraintEnd_toEndOf=
"@id/tv_forget"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
android:layout_marginStart=
"@dimen/platform_dp_28"
android:layout_marginEnd=
"@dimen/platform_dp_28"
android:layout_marginTop=
"@dimen/platform_dp_25"
app:layout_goneMarginTop=
"@dimen/platform_dp_25"
/>
...
...
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
View file @
fa6bb25f
...
...
@@ -107,7 +107,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginLeft=
"@dimen/platform_dp_
24
"
android:layout_marginLeft=
"@dimen/platform_dp_
16
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical|left"
...
...
@@ -139,9 +139,10 @@
android:layout_width=
"23dp"
android:layout_height=
"23dp"
android:layout_gravity=
"center_vertical"
android:padding=
"5dp"
android:scaleType=
"fitXY"
android:src=
"@drawable/user_ic_del"
android:paddingTop=
"@dimen/platform_dp_5"
android:paddingBottom=
"@dimen/platform_dp_5"
android:paddingLeft=
"@dimen/platform_dp_5"
android:src=
"@drawable/user_ic_del_new"
android:visibility=
"gone"
app:layout_constraintEnd_toEndOf=
"@id/view_lin"
app:layout_constraintTop_toTopOf=
"@id/et_phone_number"
...
...
@@ -158,11 +159,11 @@
android:layout_marginTop=
"@dimen/platform_dp_25"
android:background=
"@drawable/login_password_unable_bg_24dp"
android:gravity=
"center"
android:layout_marginStart=
"@dimen/platform_dp_
40
"
android:layout_marginEnd=
"@dimen/platform_dp_
40
"
android:layout_marginStart=
"@dimen/platform_dp_
28
"
android:layout_marginEnd=
"@dimen/platform_dp_
28
"
android:paddingTop=
"@dimen/platform_dp_13"
android:paddingBottom=
"@dimen/platform_dp_13"
android:textSize=
"1
5
sp"
android:textSize=
"1
7
sp"
android:id=
"@+id/ll_next"
android:textColor=
"@color/white"
/>
...
...
m-user/src/main/res/layout/user_activity_verification_code_new.xml
View file @
fa6bb25f
...
...
@@ -75,7 +75,7 @@
android:id=
"@+id/login_password"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_1
5
"
android:layout_marginTop=
"@dimen/platform_dp_1
0
"
android:text=
"密码登录"
android:textColor=
"@color/platform_color_666666"
android:textSize=
"13sp"
...
...
m-user/src/main/res/layout/user_kefu_tipdialog.xml
View file @
fa6bb25f
...
...
@@ -2,8 +2,8 @@
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"
38dp
"
android:layout_marginEnd=
"
38dp
"
android:layout_marginStart=
"
@dimen/platform_dp_38
"
android:layout_marginEnd=
"
@dimen/platform_dp_38
"
android:background=
"@drawable/shape_bg_white_fillet8"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
...
...
@@ -17,7 +17,7 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:layout_marginTop=
"@dimen/platform_dp_2
8
"
android:layout_marginTop=
"@dimen/platform_dp_2
4
"
android:id=
"@+id/title"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment