Best code examples for Android TextureView class (android.view.TextureView)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android TextureView class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android TextureView examples from Open Source projects
This code example shows how to use the following methods: setSurfaceTextureListener
46:	mTextureView = new TextureView(this); 
47:	mTextureView.setSurfaceTextureListener(this); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setOpaque, setSurfaceTextureListener
41:	mTextureView = new TextureView(this); 
42:	mTextureView.setSurfaceTextureListener(this); 
43:	mTextureView.setOpaque(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener, setOnClickListener
52:	mTextureView = new TextureView(this); 
53:	mTextureView.setSurfaceTextureListener(this); 
54:	mTextureView.setOnClickListener(new View.OnClickListener() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener
35:	widget=new TextureView(cameraView.getContext()); 
36:	widget.setSurfaceTextureListener(this); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener, setOnClickListener
63:	mTextureView = new TextureView(this); 
64:	mTextureView.setSurfaceTextureListener(this); 
65:	mTextureView.setOnClickListener(new View.OnClickListener() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener
25:	mTextureView = new TextureView(this); 
26:	mTextureView.setSurfaceTextureListener(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getBitmap
54:	Bitmap b = mTextureView.getBitmap(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener
46:	mTextureView = new TextureView(this); 
47:	mTextureView.setSurfaceTextureListener(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getBitmap
57:	Bitmap b = mTextureView.getBitmap(800, 800); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener, invalidate, requestLayout, setKeepScreenOn, setOnClickListener
85:	mTextureView.requestLayout(); 
86:	mTextureView.invalidate(); 
-
144:	mTextureView.setKeepScreenOn(true); 
145:	mTextureView.setOnClickListener(mClickListener); 
-
147:	mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: invalidate
121:	mDisplayView.invalidate(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams, setScaleX, setScaleY
55:	textureView.setLayoutParams(new FrameLayout.LayoutParams(480, 320, Gravity.CENTER)); 
-
58:	textureView.setScaleX(0.5f); 
59:	textureView.setScaleY(0.5f); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener
25:	textureView = new TextureView(this); 
26:	textureView.setSurfaceTextureListener(this); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAlpha, setAlpha
132:	final float a = textureView.getAlpha(); 
133:	textureView.setAlpha(Math.min(VIEW_ALPHA_MAX, a + ALPHA_MOVE)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSurfaceTexture, isAvailable
49:	if (tv.isAvailable()) 
-
70:	cam.setPreviewTexture(tv.getSurfaceTexture()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: invalidate
104:	mTextureView.invalidate(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setSurfaceTextureListener
96:	mVideoView.setSurfaceTextureListener(new SurfaceTextureListener() { 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: getBitmap
97:	Bitmap barcodeBmp = mTextureView.getBitmap(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isAvailable
39:	if (surface.isAvailable()) 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getBitmap
95:	mTextureView.getBitmap(bmp); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setTransform
374:	mPreviewView.setTransform(transform); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: setTransform
408:	.setTitle("Missing test" ) 
Full Snippet Info
3
CodeRank
Related Android TextureView Questions & Answers:
See Code Examples for Android TextureView Methods: