<span id="Label3"><p>In android, you can turn on hardware acceleration on four different levels:</p><p>1. application:<br><application android:hardwareaccelerated= "true" ></p><p>2. Activity<br><activity android:hardwareaccelerated= "true" ><br>3. Window<br>GetWindow (). setflags (WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_ hardware_accelerated);<br>4. View<br>View.setlayertype (view.layer_type_software, null);<br>In these four levels, the app and activity are selectable, window can only be opened, and view can only be Closed.</p><p></p><p>In apk androidmanifest, if Minsdkversion&targetsdkversion=7 is specified, the app will not be able to use hardware acceleration for drawing.</p><p><span style="color: #ff0000;">however, It is important to note that if the parent view and child view turn on hardware acceleration at the same time, the hardware acceleration will sometimes fail, such as the view does not appear when the image is generated, the reason for the source to See.</span></p><p>Android Hardware acceleration</p></span>
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