Commit 08da99e9 by 徐健

修改h5页面的标题栏图标

parent 1d5c3217
...@@ -593,7 +593,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -593,7 +593,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if (!TextUtils.isEmpty(h5Params.getTitle()) && !h5Params.getShowUrlTitle()) { if (!TextUtils.isEmpty(h5Params.getTitle()) && !h5Params.getShowUrlTitle()) {
tb_title.setTitle(h5Params.getTitle()); 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(); WebSettings setting = wv_content.getSettings();
setting.setJavaScriptEnabled(true);//支持js setting.setJavaScriptEnabled(true);//支持js
...@@ -822,7 +822,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -822,7 +822,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title.setImageVis(1); tb_title.setImageVis(1);
} }
} else { } 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.setmLeftText("");
tb_title.setImageListener(v -> { tb_title.setImageListener(v -> {
if (h5Params.getShowUrlTitle()) { if (h5Params.getShowUrlTitle()) {
...@@ -966,7 +966,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -966,7 +966,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
} }
private void initShareMenu() { 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) -> { tb_title.setOnRightTextClick((view, isActive) -> {
share(null, null); share(null, null);
}); });
...@@ -1109,7 +1109,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1109,7 +1109,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title.setImageVis(1); tb_title.setImageVis(1);
} }
} else { } 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.setmLeftText("");
if ("top".equals(type)) { if ("top".equals(type)) {
setTitle(wv_content.getTitle()); setTitle(wv_content.getTitle());
...@@ -1302,9 +1302,9 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1302,9 +1302,9 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
} }
if (h5Params.isShowMenu()) { if (h5Params.isShowMenu()) {
if (WebModularServiceUtils.Companion.getImService().isHasUnread()) { 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 { } 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) { if (backgroundView.getVisibility() == View.VISIBLE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment