Home | History | Annotate | Download | only in view

Lines Matching defs:TextureView

32  * <p>A TextureView can be used to display a content stream. Such a content
36 * <p>TextureView can only be used in a hardware accelerated window. When
37 * rendered in software, TextureView will draw nothing.</p>
39 * <p>Unlike {@link SurfaceView}, TextureView does not create a separate
41 * TextureView to be moved, transformed, animated, etc. For instance, you
42 * can make a TextureView semi-translucent by calling
45 * <p>Using a TextureView is simple: all you need to do is get its
48 * camera preview into a TextureView:</p>
51 * public class LiveCameraActivity extends Activity implements TextureView.SurfaceTextureListener {
53 * private TextureView mTextureView;
58 * mTextureView = new TextureView(this);
91 * <p>A TextureView's SurfaceTexture can be obtained either by invoking
94 * TextureView is attached to a window (and {@link #onAttachedToWindow()} has
98 * <p>It is important to note that only one producer can use the TextureView.
99 * For instance, if you use a TextureView to display the camera preview, you
100 * cannot use {@link #lockCanvas()} to draw onto the TextureView at the same
106 public class TextureView extends View {
107 private static final String LOG_TAG = "TextureView";
131 * Creates a new TextureView.
135 public TextureView(Context context) {
140 * Creates a new TextureView.
145 public TextureView(Context context, AttributeSet attrs) {
150 * Creates a new TextureView.
158 public TextureView(Context context, AttributeSet attrs, int defStyleAttr) {
163 * Creates a new TextureView.
175 public TextureView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
188 * Indicates whether the content of this TextureView is opaque. The
191 * @param opaque True if the content of this TextureView is opaque,
208 Log.w(LOG_TAG, "A TextureView or a subclass can only be "
265 * The layer type of a TextureView is ignored since a TextureView is always
268 * this TextureView.
309 "TextureView doesn't support displaying a foreground drawable");
317 "TextureView doesn't support displaying a background drawable");
322 * Subclasses of TextureView cannot do their own rendering
334 properties (alpha, layer paint) affect all of the content of a TextureView. */
351 * Subclasses of TextureView cannot do their own rendering
617 * TextureView is available for rendering. When this method returns
639 * owned by another producer. For instance, if the TextureView is being used
771 * @see #setSurfaceTextureListener(android.view.TextureView.SurfaceTextureListener)
804 * Invoked when a {@link TextureView}'s SurfaceTexture is ready for use.
807 * {@link android.view.TextureView#getSurfaceTexture()}
817 * {@link android.view.TextureView#getSurfaceTexture()}