Add feature to TextureView
See original GitHub issueIt would be great to add support for TextureView to be able to do this:
myTexture = (TextureView) findViewById(R.id.textureView);
myTexture.setSurfaceTextureListener(mSurfaceTextureListener);
// ...
QREader.getInstance().init(this, myTexture);
Why? Because for a better integration with the Camera2 API, it’s recommended to use a TextureView, because:
Unlike SurfaceView, TextureView does not create a separate window but behaves as a regular View. This key difference allows a TextureView to be moved, transformed, animated, etc.
References:
https://developer.android.com/reference/android/hardware/camera2/package-summary.html https://developer.android.com/reference/android/view/TextureView.html
Thanks for the good work!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:6 (4 by maintainers)
Top Results From Across the Web
TextureView - Android Developers
Flag requesting you to add views that are marked as not important for autofill (see setImportantForAutofill(int) ) to a ViewStructure .
Read more >How add view over TextureView - Stack Overflow
The best solution I found to handle that is to show the top View inside another Window that sits on top of Window...
Read more >Android Camera2 API Video App - Part 3 Adding TextureView ...
Part 3 describes how to add the TextureView and attach a surface texture listener to be notified of when the TextureView is available....
Read more >Android app development for beginners - 44 - Playing Video ...
Reading an mp4 file from assets and playing in a texture view .Also pause, resume and stop functionality of the media player.
Read more >TextureView - Android SDK | Android Developers - MIT
A TextureView can be used to display a content stream. Such a content stream can for instance be a video or an OpenGL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will look into this in the weekend.
Thank you 😃
+1