2016-07-04 70 views
0

我在Android上使用人行橫道(XwalkView)而不是默認的Webview,但似乎defalt pull-to-refresh功能在Android 4.3上不起作用。我已經在5.0上測試過了,沒關係,但在4.3和4.2.2上不起作用。我猜這跟< 5.0有關?人行橫道(xwalk)拉到刷新不起作用

我已經試過這樣的事情來啓用它,但它未能奏效:

//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); 
     } 
    } 

任何想法?

回答