Crosswalk (xwalk) pull to refresh not working

孤者浪人 提交于 2019-12-25 01:15:02

问题


I'm using Crosswalk (XwalkView) instead of the default Webview on Android but it seems that the defalt pull-to-refresh functionality doesn't work on Android 4.3. I've tested it on 5.0 and it's ok, but on 4.3 and 4.2.2 it doesn't work. I'm guessing it has to do with < 5.0 ?!

I've tried something like this to enable it, but it failed to work:

    //Disable the edge effect and try to enable pull to refresh in case we're using xwalk webviews
    if (BuildConfig.IS_XWALK) {
        final String INIT_SWITCHES[] = {"Xwalk", "--enable-pull-to-refresh-effect", "--disable-overscroll-edge-effect"};
        if (!CommandLine.isInitialized()) {
            CommandLine.init(INIT_SWITCHES);
        }
    }

Any ideas ?


回答1:


Actually, we already have a JIRA about this feature, please track it here: https://crosswalk-project.org/jira/browse/XWALK-6277.

It has some block issue before, but we will continue investigating how to implement it.



来源:https://stackoverflow.com/questions/38185366/crosswalk-xwalk-pull-to-refresh-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!