Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

容器迭代一 #8

Open
army8735 opened this issue Feb 1, 2018 · 0 comments
Open

容器迭代一 #8

army8735 opened this issue Feb 1, 2018 · 0 comments
Labels

Comments

@army8735
Copy link
Member

army8735 commented Feb 1, 2018

titleBar部分布局修改

1

进入容器后参数调整

  • 增加titleColor参数,可以初始设置标题文字的颜色
  • 增加backIcon参数,可以初始设置back按钮的base64图片
  • optionMenu指定右上角文字的兼容基础上,增加optionMenuColor,指定文字颜色
  • optionMenu参数为空或空字符串时,optionMenu文字隐藏布局不可见包括边距不可见
  • 增加optionMenuIcon1参数,指定第1个optionMenu按钮的图片base64,没指定或空则隐藏布局不可见;点击后触发optionMenu1事件 https://github.com/uyutech/android/blob/master/app/src/main/java/cc/circling/X5Activity.java#L299
  • 增加optionMenuIcon2参数,指定第2个,效果同上;点击后触发optionMenu2事件

SetOptionMenu功能整合,ShowOptionMenuHideOptionMenu移除

jsBridge.setOptionMenu(data: Object);
/**
 * data.text: String 右上角按钮的文字
 * data.textColor: String 右上角按钮文字的颜色
 * data.img1: String 右上角第1个按钮的base64图片
 * data.img2: String 右上角第2个按钮的base64图片
 */
  • 设置后,2个图片按钮和1个文字均按照有则显示,无则隐藏不占位的逻辑处理

添加SetCachePluginGetCachePlugin

  • 效果同SetPreferencePlugin,区别是参数可以同时传单个或多个
jsBridge.setCache(key: String, value: String/null, cb: Function)
jsBridge.setCache(key: Array<String>, value: Array<String/null>, cb: Function)
jsBridge.getCache(key: String, cb: Function)
jsBridge.getCache(key: Array<String>)

移除SetCookiePlugin

native和js通信变更

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant