Romain Guy
aa6c24c21c
New widget: TextureView
...
Bug #4343984
TextureView can be used to render media content (video, OpenGL,
RenderScript) inside a View.
The key difference with SurfaceView is that TextureView does
not create a new Surface. This gives the ability to seamlessly
transform, animate, fade, etc. a TextureView, which was hard
if not impossible to do with a SurfaceView.
A TextureView also interacts perfectly with ScrollView,
ListView, etc. It allows application to embed media content
in a much more flexible way than before.
For instance, to render the camera preview at 50% opacity,
all you need to do is the following:
mTextureView.setAlpha(0.5f);
Camera c = Camera.open();
c.setPreviewTexture(mTextureView.getSurfaceTexture());
c.startPreview();
TextureView uses a SurfaceTexture to get the job done. More
APIs are required to make it easy to create OpenGL contexts
for a TextureView. It can currently be done with a bit of
JNI code.
Change-Id: Iaa7953097ab5beb8437bcbbfa03b2df5b7f80cd7
2011-04-28 18:46:19 -07:00
..
2011-04-26 11:24:42 -07:00
2010-07-13 15:45:18 -07:00
2010-11-04 13:37:45 -07:00
2011-03-05 20:53:16 -08:00
2011-04-11 17:04:01 -07:00
2011-04-11 17:04:01 -07:00
2011-04-11 17:04:01 -07:00
2011-04-11 17:04:01 -07:00
2011-04-05 15:53:59 -07:00
2011-04-04 15:25:39 -07:00
2011-04-05 15:53:59 -07:00
2011-01-19 14:06:29 -08:00
2011-03-21 14:17:19 -07:00
2011-03-05 20:53:16 -08:00
2011-04-12 11:28:59 -07:00
2011-02-25 08:56:07 -08:00
2010-05-20 12:35:17 -07:00
2011-03-15 14:38:28 -04:00
2010-03-11 11:38:31 -08:00
2010-02-18 10:13:11 -08:00
2010-09-14 16:38:01 -07:00
2011-04-11 17:04:01 -07:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2011-04-12 17:50:45 -07:00
2011-04-07 19:17:57 -07:00
2011-04-08 15:01:19 -07:00
2010-09-14 01:59:45 -07:00
2011-04-12 11:28:59 -07:00
2011-04-11 17:04:01 -07:00
2011-03-11 10:24:21 -05:00
2011-04-06 10:04:20 -07:00
2011-04-06 10:24:18 -07:00
2011-04-06 10:04:20 -07:00
2011-04-11 17:04:01 -07:00
2011-04-08 15:01:19 -07:00
2011-04-08 15:01:19 -07:00
2011-04-12 11:28:59 -07:00
2011-04-13 10:34:23 -07:00
2011-04-13 10:34:23 -07:00
2010-11-08 13:18:49 -06:00
2010-11-08 13:18:49 -06:00
2010-11-08 13:18:49 -06:00
2011-04-12 11:28:59 -07:00
2009-03-03 19:31:44 -08:00
2011-04-11 15:31:20 -07:00
2011-04-11 15:31:20 -07:00
2011-04-11 15:31:20 -07:00
2011-04-11 15:31:20 -07:00
2011-04-11 15:31:20 -07:00
2010-10-17 23:40:43 -07:00
2011-04-12 11:28:59 -07:00
2011-04-12 11:28:59 -07:00
2011-03-05 20:53:16 -08:00
2010-09-14 01:59:45 -07:00
2011-04-12 14:25:23 -07:00
2011-04-07 19:17:57 -07:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2011-04-08 15:01:19 -07:00
2009-03-03 19:31:44 -08:00
2011-04-12 11:28:59 -07:00
2011-02-22 10:53:29 -08:00
2011-04-05 15:53:59 -07:00
2011-04-05 15:20:52 -07:00
2010-06-04 14:55:02 -07:00
2011-04-12 11:28:59 -07:00
2011-04-12 11:28:59 -07:00
2010-02-16 12:16:48 -08:00
2011-04-11 17:04:01 -07:00
2011-04-11 17:04:01 -07:00
2011-04-11 17:04:01 -07:00
2011-04-12 11:28:59 -07:00
2010-02-18 07:09:06 -05:00
2009-03-03 19:31:44 -08:00
2011-04-07 19:17:57 -07:00
2011-04-13 16:43:15 -07:00
2011-04-07 19:17:57 -07:00
2011-04-07 19:17:57 -07:00
2011-04-21 15:17:52 -07:00
2011-04-28 18:46:19 -07:00
2011-02-26 15:39:12 -08:00
2010-06-22 11:21:50 -07:00
2011-03-15 19:59:47 -07:00
2011-03-05 20:53:16 -08:00
2010-11-30 18:50:17 -08:00
2010-11-30 18:50:17 -08:00
2011-03-31 19:57:00 -07:00
2011-03-15 19:59:47 -07:00
2011-04-19 15:35:51 -07:00
2011-04-19 15:35:51 -07:00
2011-04-20 14:26:11 -07:00
2011-03-15 19:59:47 -07:00
2010-06-13 19:16:55 -07:00
2011-04-19 15:35:51 -07:00
2011-04-19 15:35:51 -07:00
2009-03-03 19:31:44 -08:00
2011-04-12 11:28:59 -07:00
2011-04-08 15:01:19 -07:00
2011-04-12 11:28:59 -07:00
2011-04-11 15:31:20 -07:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2009-03-03 19:31:44 -08:00
2009-07-21 11:16:54 -07:00
2009-07-21 11:16:54 -07:00