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
f360d40e
Commit
f360d40e
authored
Jan 12, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:一键登录弹窗样式按照阿里云制定标准修改
parent
e96276b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+7
-3
styles.xml
m-user/src/main/res/values/styles.xml
+1
-11
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
f360d40e
...
...
@@ -84,6 +84,7 @@ object OneKeyLoginHelp {
// 获取渠道
val
channel
=
WalleChannelReader
.
getChannel
(
activity
)
checkBoxHidden
=
!(
channel
==
"huawei"
||
channel
==
"vivo"
)
LogUtil
.
e
(
"checkBoxHidde:$checkBoxHidden"
)
}
/**
...
...
@@ -283,6 +284,9 @@ object OneKeyLoginHelp {
phoneNumberAuthHelper
.
removeAuthRegisterViewConfig
()
val
dialogHeight
=
RxImageTool
.
px2dp
((
RxDeviceTool
.
getScreenHeight
(
mActivity
)
*
0.45f
))
//sdk默认控件的区域是marginTop50dp
val
designHeight
=
dialogHeight
-
50
val
unit
:
Int
=
designHeight
/
10
phoneNumberAuthHelper
.
setAuthUIConfig
(
AuthUIConfig
.
Builder
()
.
setStatusBarColor
(
Color
.
TRANSPARENT
)
...
...
@@ -298,17 +302,17 @@ object OneKeyLoginHelp {
.
setSloganHidden
(
true
)
// 设置slogan是否隐藏
.
setNumberColor
(
Color
.
parseColor
(
"#242424"
))
.
setNumberSize
(
24
)
.
setNumFieldOffsetY
(
6
0
)
.
setNumFieldOffsetY
(
unit
+
1
0
)
.
setLogBtnBackgroundPath
(
"bg_one_click_login"
)
// 设置登录按钮背景图片
.
setLogBtnTextColor
(
Color
.
parseColor
(
"#ffffff"
))
// 设置登录按钮颜色
.
setLogBtnTextSize
(
16
)
.
setLogBtnMarginLeftAndRight
(
35
)
// 设置登录按钮距离左右距离
.
setLogBtnHeight
(
78
)
.
setLogBtnOffsetY
(
90
)
.
setLogBtnOffsetY
(
(
unit
*
2.5
).
toInt
()
)
.
setSwitchAccText
(
"其它方式登录"
)
.
setSwitchAccTextSize
(
15
)
.
setSwitchAccTextColor
(
Color
.
parseColor
(
"#666666"
))
.
setSwitchOffsetY
(
16
8
)
.
setSwitchOffsetY
(
16
0
)
.
setAppPrivacyOne
(
"壹点灵用户使用协议"
,
"https://h5.ydl.com/SDUserProtol"
)
.
setAppPrivacyTwo
(
"隐私协议"
,
"https://m.ydl.com/Protol/yinsi"
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#999999"
),
Color
.
parseColor
(
"#1da1f2"
))
...
...
m-user/src/main/res/values/styles.xml
View file @
f360d40e
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<style
name=
"authsdk_activity_dialog"
parent=
"Theme.AppCompat.Light.NoActionBar"
tools:ignore=
"ResourceName"
>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
<item
name=
"android:windowBackground"
>
@android:color/transparent
</item>
<item
name=
"android:backgroundDimEnabled"
>
true
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowCloseOnTouchOutside"
>
false
</item>
<item
name=
"android:windowIsFloating"
>
true
</item>
</style>
<resources>
<style
name=
"user_new_divide_color_style"
>
<item
name=
"android:layout_width"
>
match_parent
</item>
...
...
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