But when integration into their own project, TextureView there was a problem in the use of
The XML file:
Android: layout_width="match_parent"
Android: layout_height="match_parent"
Android: layout_above="@" + id/ll_bottom/& gt;
Error reason:
Android. View. InflateException: Binary XML file line # 77: Binary XML file line # 77: Error inflating class android. The TextureView
Under Caused by: android. View. InflateException: Binary XML file line # 77: Error inflating class android. The TextureView
Under Caused by: Java. Lang. UnsupportedOperationException: TextureView doesn 't support displaying a background drawable
After inspection found the demo environment 25.0.2 I match the environment project is 27.1.1 don't know because version problem caused by or something else for help
CodePudding user response:
Android7.0 TextureView does not support set at a later timeCodePudding user response:
Is not set in the XML layout background equals and superiors are not set background reference no background style also is invalidCodePudding user response:
I also met, it is the Activity of theme, the theme is the theme. AppCompat theme, I changed to android: theme="@ style/theme. AppCompat. NoActionBar" is ok,CodePudding user response:
So long as there is no set the background theme, check the theme