xwalkview

How to use back button to go back with XWalkView of CrossWalk, or disable it?

蹲街弑〆低调 提交于 2019-12-10 11:06:32
问题 I use below code to go back in webview at first try. But for the low render ability, I used XWalkView replace the WebView. public boolean onKeyDown(int keyCode, KeyEvent event) { WebView mWebView = (WebView) findViewById(R.id.webview); if (event.getAction() == KeyEvent.ACTION_DOWN) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: if (mWebView.canGoBack()) { mWebView.goBack(); } else { finish(); if (MainActivity.mTencent.isSessionValid()) { MainActivity.logout(); } } return true; } } return

Is there a XWalkView webviewclient?

穿精又带淫゛_ 提交于 2019-12-08 19:36:37
问题 I'm trying to use XWalkView as webview replacement in my android app. I noticed that there's no setWebViewClient method on XWalkView object. The thing is that I want to check when the page is finished ( onPageFinished ) and when the resource is loaded ( onLoadResource ). How can I do this with XWalkView ? I embed the XWalkView using this tutorial embed crosswalk in android studio 回答1: Cross Walk API introduces its own names for every component. Not only the WebView is renamed to XWalkView ,

Android layout collapse

断了今生、忘了曾经 提交于 2019-12-04 17:16:05
I use a XWalkView to load webpage and a IjkVideoView to play live video in my app. I want the IjkVideoView playing the video in front the XwalkView, so I put these two view in a relativelayout and IijVideoView behind the XWalkView. In the android studio's Component Tree of Design window the layout seems ok as below image, While when I run the app in my device, the layout is in mess as below image. You can see the background of IjkVieoView is in front of XWalkView, but the video playing in the IjkVideoView is behind the XWalkView, as the upper part of the video has been covered by the XWalkView