Home | History | Annotate | Download | only in view

Lines Matching full:textureview

31  * <p>A TextureView can be used to display a content stream. Such a content
35 * <p>TextureView can only be used in a hardware accelerated window. When
36 * rendered in software, TextureView will draw nothing.</p>
38 * <p>Unlike {@link SurfaceView}, TextureView does not create a separate
40 * TextureView to be moved, transformed, animated, etc. For instance, you
41 * can make a TextureView semi-translucent by calling
44 * <p>Using a TextureView is simple: all you need to do is get its
47 * camera preview into a TextureView:</p>
50 * public class LiveCameraActivity extends Activity implements TextureView.SurfaceTextureListener {
52 * private TextureView mTextureView;
57 * mTextureView = new TextureView(this);
90 * <p>A TextureView's SurfaceTexture can be obtained either by invoking
93 * TextureView is attached to a window (and {@link #onAttachedToWindow()} has
97 * <p>It is important to note that only one producer can use the TextureView.
98 * For instance, if you use a TextureView to display the camera preview, you
99 * cannot use {@link #lockCanvas()} to draw onto the TextureView at the same
105 public class TextureView extends View {
106 private static final String LOG_TAG = "TextureView";
133 * Creates a new TextureView.
137 public TextureView(Context context) {
143 * Creates a new TextureView.
149 public TextureView(Context context, AttributeSet attrs) {
155 * Creates a new TextureView.
165 public TextureView(Context context, AttributeSet attrs, int defStyle) {
183 * Indicates whether the content of this TextureView is opaque. The
186 * @param opaque True if the content of this TextureView is opaque,
203 Log.w(LOG_TAG, "A TextureView or a subclass can only be "
225 Log.w(LOG_TAG, "TextureView was not able to destroy its surface: " + this);
256 * The layer type of a TextureView is ignored since a TextureView is always
259 * this TextureView.
297 * Subclasses of TextureView cannot do their own rendering
312 * Subclasses of TextureView cannot do their own rendering
620 * TextureView is available for rendering. When this method returns
642 * owned by another producer. For instance, if the TextureView is being used
746 * @see #setSurfaceTextureListener(android.view.TextureView.SurfaceTextureListener)
770 * Invoked when a {@link TextureView}'s SurfaceTexture is ready for use.
773 * {@link android.view.TextureView#getSurfaceTexture()}
783 * {@link android.view.TextureView#getSurfaceTexture()}