Whether you're debugging a Web page or debugging a hybrid hybrid app, you'll need to debug it using Chrome://inspect as long as you're debugging Android WebView. But domestic developers will be 404 Not Found error:There are two ways to resolve this:
The most straightforward method: FQ. Fan Wall The biggest problem of free instability, monthly charges and too wasteful.
It is recommended to use the Of
Android uses Chrome Inspect to debug the H5 App of WebView. The solution (FQ is not required), chromewebview
The most comfortable tool for debugging the WebView-based Hybrid App is of course the developer tool that comes with Chrome. Among them, we are familiar with Dom tree debugging, JS debugging, Network monitoring, and other functions.
Steps for Google to debug WebView on
The most comfortable tool for debugging the WebView-based hybrid app is of course Chrome's own developer tools, including our familiar DOM tree debugging, JS debugging, network monitoring and more.Google offers the steps to debug WebView on Android:
Turn on the USB debugging feature on your phone
Open Chrome Browser, address bar input: Chrome://inspect, enter
Chrome automatically detects th
ontouchevent to receive. If the ontouchevent passed to the top also returns false, the event "disappears" and the next event is not received. 3. Why use GETRAWX and Getrawy to obtain coordinates in dispatchtouchevent ()Getx and gety get the coordinates relative to the clicked view, and Getrawx gets the coordinates relative to the screen. And we want to see the ripple effect of water, should be from the screen relative to the point is clicked to diffuse the waves.4, Initparametersforchild () in
Motive explanationYou can simulate keyboard events, touch-screen events keyevent, and Text,tap by using the ADB shell-I inputBut the target Android 4.0.3 system input in hand only supports text and keyevent, does not support tap and cannot simulate touch-click events.usage: input [text|keyevent] input text Then began to look for alternative solutions for an
, MenuItem Item) {switch (Item.getitemid ()) {//Menu click event Case R.id.menu_delete://delete log.d (TAG, "delete Menu"); listSuchThe core code is above, the implementation of long press DELETE, the effect is good. If you don't know, you can contact me. Hope that our search products can grow into a tree day by day.good night. If you want to join our team, you can also contact me. I will give you the help you can, but also look forward to everyone's happy cooperation.
@Overridepublic boolean ontouchevent (Motionevent event) {Super.ontouchevent (event);Switch (event.getaction ()) {Case Motionevent.action_down:After tapping the screen, set the radius to 0,alpha to 255.Mybean bean = new Mybean ();Bean.radius = 0; Click the rear radius to first set to 0Bean.alpha = Maxalpha; Alpha set to Maximum value 255Bean.width = BEAN.RADIUS/8; Stroke width This randomBean. X = (int) event.getx (); The x-coordinate of the drawn circleBean. Y = (int) event.gety (); The y-coord
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.