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
3ad1fed6
Commit
3ad1fed6
authored
Mar 27, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加h5页面设置底部适配布局颜色的交互方法
parent
91b014db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
config.gradle
config.gradle
+3
-3
BaseActivity.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
+11
-0
H5JsBean.kt
ydl-webview/src/main/java/com/ydl/webview/H5JsBean.kt
+2
-0
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+6
-0
No files found.
config.gradle
View file @
3ad1fed6
...
...
@@ -69,10 +69,10 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.39.1
6
"
,
"ydl-platform"
:
"0.0.39.1
9
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.2
4
"
,
"ydl-webview"
:
"0.0.38.2
6
"
,
"ydl-media"
:
"0.0.20"
,
"ydl-pay"
:
"0.0.17"
,
"m-audioim"
:
"0.0.48.3.2"
,
...
...
@@ -115,7 +115,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.39.1
6
"
,
"ydl-platform"
:
"0.0.39.1
9
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.24"
,
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
View file @
3ad1fed6
...
...
@@ -102,6 +102,17 @@ 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
))
}
}
catch
(
e
:
Exception
)
{}
}
open
fun
getDefaultBottomColor
():
Int
{
return
Color
.
parseColor
(
"#00000000"
)
}
...
...
ydl-webview/src/main/java/com/ydl/webview/H5JsBean.kt
View file @
3ad1fed6
...
...
@@ -44,6 +44,8 @@ class H5JsBean {
var
orderStatus
:
Int
=
0
var
orderStatusDesc
:
String
?
=
null
var
bottomfitViewColor
:
String
?
=
null
//底部适配布局的颜色
var
orderContent
:
String
?
=
null
//默认发送的第一天聊天
var
action_name
:
String
?
=
null
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
3ad1fed6
...
...
@@ -544,6 +544,12 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
});
}
public
void
setBottomViewColor
(
String
color
)
{
runOnUiThread
(()
->
{
setBottomColor
(
color
);
});
}
public
void
showTitleBar
()
{
runOnUiThread
(()
->
{
tb_title
.
setVisibility
(
VISIBLE
);
...
...
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