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
08da99e9
Commit
08da99e9
authored
Jan 14, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改h5页面的标题栏图标
parent
1d5c3217
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+6
-6
web_common_back.png
ydl-webview/src/main/res/drawable-xhdpi/web_common_back.png
+0
-0
web_common_notice_more_en.png
ydl-webview/src/main/res/drawable-xhdpi/web_common_notice_more_en.png
+0
-0
web_common_notice_more_un.png
ydl-webview/src/main/res/drawable-xhdpi/web_common_notice_more_un.png
+0
-0
web_common_share.png
ydl-webview/src/main/res/drawable-xhdpi/web_common_share.png
+0
-0
No files found.
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
08da99e9
...
...
@@ -593,7 +593,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if
(!
TextUtils
.
isEmpty
(
h5Params
.
getTitle
())
&&
!
h5Params
.
getShowUrlTitle
())
{
tb_title
.
setTitle
(
h5Params
.
getTitle
());
}
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_back
));
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_back
));
WebSettings
setting
=
wv_content
.
getSettings
();
setting
.
setJavaScriptEnabled
(
true
);
//支持js
...
...
@@ -822,7 +822,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title
.
setImageVis
(
1
);
}
}
else
{
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_back
));
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_back
));
tb_title
.
setmLeftText
(
""
);
tb_title
.
setImageListener
(
v
->
{
if
(
h5Params
.
getShowUrlTitle
())
{
...
...
@@ -966,7 +966,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
private
void
initShareMenu
()
{
tb_title
.
setRightIcon
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_share
));
tb_title
.
setRightIcon
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_share
));
tb_title
.
setOnRightTextClick
((
view
,
isActive
)
->
{
share
(
null
,
null
);
});
...
...
@@ -1109,7 +1109,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title
.
setImageVis
(
1
);
}
}
else
{
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_back
));
tb_title
.
setImage
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_back
));
tb_title
.
setmLeftText
(
""
);
if
(
"top"
.
equals
(
type
))
{
setTitle
(
wv_content
.
getTitle
());
...
...
@@ -1302,9 +1302,9 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
if
(
h5Params
.
isShowMenu
())
{
if
(
WebModularServiceUtils
.
Companion
.
getImService
().
isHasUnread
())
{
tb_title
.
setImage_right
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_notice_more_en
));
tb_title
.
setImage_right
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_notice_more_en
));
}
else
{
tb_title
.
setImage_right
(
getResources
().
getDrawable
(
R
.
drawable
.
platform
_common_notice_more_un
));
tb_title
.
setImage_right
(
getResources
().
getDrawable
(
R
.
drawable
.
web
_common_notice_more_un
));
}
}
if
(
backgroundView
.
getVisibility
()
==
View
.
VISIBLE
)
{
...
...
ydl-webview/src/main/res/drawable-xhdpi/web_common_back.png
0 → 100644
View file @
08da99e9
530 Bytes
ydl-webview/src/main/res/drawable-xhdpi/web_common_notice_more_en.png
0 → 100644
View file @
08da99e9
684 Bytes
ydl-webview/src/main/res/drawable-xhdpi/web_common_notice_more_un.png
0 → 100644
View file @
08da99e9
366 Bytes
ydl-webview/src/main/res/drawable-xhdpi/web_common_share.png
0 → 100644
View file @
08da99e9
2.02 KB
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