ceeee
ceeee

Reputation: 15

Recreating an Android View in OpenGL

Android views are generally quite laggy. I was wondering if it could be possible to like recreate them in OpenGL-ES to use hardware acceleration on it. If it was possible i'd guess it would have been done already. Is it usefull or possible?

Upvotes: 0

Views: 281

Answers (1)

Knickedi
Knickedi

Reputation: 8787

You can implement a GLSurfaceView and draw whatever you like. But I would not recommend recreating an existing view. I don't know which views you mean but on my device they aren't laggy at all...

Update: My statement that views are already hardware accelerated was disproved (see comment). So I did research and found this article (which underlines the contradiction). So hardware acceleration is available in android 3.0+. Still, I wouldn't recommend to reimplement default widgets. There's still a lot you could do wrong and so impact the performance in a negative way.

Upvotes: 1

Related Questions