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
591d54d0
Commit
591d54d0
authored
May 30, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 一键登录换图
parent
a4a76a66
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
6 deletions
+8
-6
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+6
-4
user_login_protocol_selected_new.png
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected_new.png
+0
-0
user_login_protocol_selected_new.webp
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected_new.webp
+0
-0
user_login_protocol_unselected_new.png
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected_new.png
+0
-0
user_login_protocol_unselected_new.webp
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected_new.webp
+0
-0
user_activity_register_and_login_new.xml
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
+2
-2
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
591d54d0
...
...
@@ -342,12 +342,13 @@ object OneKeyLoginHelp {
.
setAppPrivacyTwo
(
"隐私协议"
,
appPrivacyTwo
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#bfbfbf"
),
Color
.
parseColor
(
"#991da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setCheckBoxHeight
(
16
)
.
setCheckBoxWidth
(
16
)
.
setCheckBoxHeight
(
24
)
.
setCheckBoxWidth
(
24
)
.
setCheckedImgPath
(
"user_login_protocol_selected_new"
)
.
setUncheckedImgPath
(
"user_login_protocol_unselected_new"
)
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setPrivacyMargin
(
35
)
.
setProtocolGravity
(
Gravity
.
CENTER_VERTICAL
)
.
setScreenOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR_PORTRAIT
)
// 设置竖屏
// .setAuthPageActIn("in_activity", "out_activity")
// .setAuthPageActOut("in_activity", "out_activity")
...
...
@@ -394,12 +395,13 @@ object OneKeyLoginHelp {
.
setAppPrivacyTwo
(
"隐私协议"
,
"https://m.ydl.com/Protol/yinsi"
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#bfbfbf"
),
Color
.
parseColor
(
"#991da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setCheckBoxHeight
(
16
)
.
setCheckBoxWidth
(
16
)
.
setCheckBoxHeight
(
24
)
.
setCheckBoxWidth
(
24
)
.
setCheckedImgPath
(
"user_login_protocol_selected_new"
)
.
setUncheckedImgPath
(
"user_login_protocol_unselected_new"
)
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setPrivacyMargin
(
35
)
.
setProtocolGravity
(
Gravity
.
CENTER_VERTICAL
)
.
setDialogHeight
(
dialogHeight
)
.
setDialogBottom
(
true
)
.
setScreenOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR_PORTRAIT
)
// 设置竖屏
...
...
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected_new.png
0 → 100644
View file @
591d54d0
1.54 KB
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected_new.webp
deleted
100644 → 0
View file @
a4a76a66
File deleted
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected_new.png
0 → 100644
View file @
591d54d0
1.98 KB
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected_new.webp
deleted
100644 → 0
View file @
a4a76a66
File deleted
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
View file @
591d54d0
...
...
@@ -185,8 +185,8 @@
android:paddingTop=
"8dp"
android:paddingBottom=
"8dp"
android:id=
"@+id/iv_select_protocol"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
36dp
"
android:layout_height=
"
36dp
"
android:src=
"@drawable/user_login_protocol_unselected_new"
/>
<TextView
...
...
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