Hi, I'd like to do some 2G OpenGL rendering inside a ScrollView. The rendering code is in C++ and the rest of the ScrollView UI is based on Android framework UI elements.
It seems like OpenGL drawing should be done on a SurfaceView (which can be passed from Java to C++)
However, SurfaceView elements don't scroll with the rest of a ScrollView and so it seems like I won't be able to use the SurfaceView with a ScrollView
My understanding is that the TextureView in ICS/4.0 permits OpenGL drawing and also supports scrolling inside a ScrollView. So this meets my needs for new devices.
However, I'd also like to support older devices (Gingerbread/2.3 and upwards).
I'm not sure if this can be done (for instance, I'm not sure if the OpenGL drawing can be rendered to a bitmap and then have the bitmap placed inside a ScrollView)
1. Does anyone know if and how it is possible to implement this for Android 2.3 ?
iow is it possible to place an OpenGL drawing inside a ScrollView - or is the Canvas approach my only option ?
2. A second (related) question - Can I place a Canvas object inside a ScrollView, pass the Canvas object to C++ code and then use Skia apis to draw on the Canvas object
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment