Android--Canvas java.lang.UnsupportedOperationException

Source: Internet
Author: User
Dry
java.lang.UnsupportedOperationException at     android.view.GLES20Canvas.clipPath (Gles20canvas.java: 287) at     Br.com.iba.view.PageCurlView.drawCurl (pagecurlview.java:284)     at Br.com.iba.view.PageCurlView.onDraw (Pagecurlview.java:353) at     Android.view.View.draw (View.java: 9291)

In the canvas of the Clippath method to draw the image, on the NEXUS5 run no problem, but to red rice phone on the No, show no effect, after a change of a Huawei mobile phone to try, direct crash, so good, better than not collapse but show no effect to better, After searching on the StackOverflow, a solution was found.

The reason is because hardware acceleration is not supported.

Solve
null);
I'm the dividing line of the king of the Land Tiger.

Reference: Http://stackoverflow.com/questions/7401319/use-hardwareacceleration-flag-with-canvas-clippath

Android--Canvas java.lang.UnsupportedOperationException

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.