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
452fbcad
Commit
452fbcad
authored
Mar 27, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加h5页面设置底部适配布局颜色的交互方法
parent
3ad1fed6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
config.gradle
config.gradle
+1
-1
BaseActivity.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
+18
-3
No files found.
config.gradle
View file @
452fbcad
...
...
@@ -69,7 +69,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.39.
19
"
,
"ydl-platform"
:
"0.0.39.
20
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.26"
,
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
View file @
452fbcad
...
...
@@ -107,10 +107,25 @@ abstract class BaseActivity : AppCompatActivity(), IActivityLifecycleable {
*/
open
fun
setBottomColor
(
color
:
String
)
{
try
{
if
(
StatusBarUtils
.
hasBottomNavigatorLine
(
this
))
{
findViewById
<
View
>(
R
.
id
.
ll_bottom_fit_v
).
setBackgroundColor
(
Color
.
parseColor
(
color
))
if
(
getStatusViewOptions
()
?.
isAddStatusView
)
{
if
(
StatusBarUtils
.
hasBottomNavigatorLine
(
this
))
{
findViewById
<
View
>(
R
.
id
.
ll_bottom_v
).
setBackgroundColor
(
Color
.
parseColor
(
color
)
)
}
}
else
{
if
(
StatusBarUtils
.
hasBottomNavigatorLine
(
this
))
{
findViewById
<
View
>(
R
.
id
.
ll_bottom_fit_v
).
setBackgroundColor
(
Color
.
parseColor
(
color
)
)
}
}
}
catch
(
e
:
Exception
)
{}
}
catch
(
e
:
Exception
)
{
}
}
open
fun
getDefaultBottomColor
():
Int
{
...
...
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