Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

TextureView doesn't support displaying background drawable #4039

Open
chnouman opened this issue Nov 12, 2018 · 2 comments
Open

TextureView doesn't support displaying background drawable #4039

chnouman opened this issue Nov 12, 2018 · 2 comments

Comments

@chnouman
Copy link

on above API 23 I'm facing this issue.

java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable
at android.view.TextureView.setBackgroundDrawable(TextureView.java:315)
at android.view.View.setBackground(View.java:18124)
at android.view.View.<init>(View.java:4573)
at android.view.View.<init>(View.java:4082)
at android.view.TextureView.<init>(TextureView.java:159)
at com.abdulwasaetariq.xyz.ui.customView.AutoFitTextureView.<init>(AutoFitTextureView.java:24)
at com.abdulwasaetariq.xyz.ui.customView.AutoFitTextureView.<init>(AutoFitTextureView.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[...]
at java.lang.Thread.run(Thread.java:745)

If there is any fix please provide.

@dev-kang
Copy link

I have the same issue, can anyone help me?

@chnouman
Copy link
Author

@dev-kang I used webview at the end.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants