The Wayback Machine - https://web.archive.org/web/20200428131320/https://github.com/topics/custom-view
Skip to content
#

custom-view

Here are 421 public repositories matching this topic...

GcsSloop
GcsSloop commented Jan 29, 2016

原文地址:http://developer.android.com/guide/topics/graphics/hardware-accel.html
译文地址:http://blog.chenming.info/blog/2012/09/18/android-hardware-accel/

硬件加速

Android 3.0 (API level 11), 开始支持
所有的View 的canvas都会使用GPU,但是硬件的加速会占有一定的RAM。
在API >= 14上,默认是开启的,如果你的应用只是标准的View和Drawable,全局都打开硬件加速,是不会有任何问题的。
然而,硬件加速并不支持所有的2D画图的操作,这时开着它,可能会影响到你的自定义控件或者绘画,出现异常等行为,
所以android对于硬件加速提供了可选性

如果你的应用执行了自定义的绘画,可以通

Improve this page

Add a description, image, and links to the custom-view topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the custom-view topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.