Caused by: android.view.InflateException:
See original GitHub issueCaused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class com.github.piasy.biv.view.BigImageView
at android.view.LayoutInflater.inflate(LayoutInflater.java:543)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
atandroid.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:292)
this is my code
<com.github.piasy.biv.view.BigImageView
android:id="@+id/photo_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:failureImage="@drawable/default_entry_pic"
app:failureImageInitScaleType="center"
app:optimizeDisplay="false" />
@BindView(R.id.photo_view)
BigImageView mBigImage;
@Override
protected void onCreate(Bundle savedInstanceState) {
BigImageViewer.initialize(GlideImageLoader.with(MyApplication.getApplication()));
setContentview(R.layout.activiyt_main);
mBigImage.showImage(Uri.parse(url));
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Binary XML file: Error inflating class fragment - Stack Overflow
NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class fragment at ...
Read more >How to fix "android.view.InflateException: Binary XML file line ...
Caused by: android.view.InflateException: Binary XML file line # 15 in com.example.mycamera:layout/activity_main: Error inflating class ...
Read more >Binary XML file line #28: Error inflating class <unknown>
14 more W/WindowManager( 197): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class org.mozilla.gecko.
Read more >Caused by: android.view.InflateException: Binary XML file line ...
As the title,when i use mapview in fragment not in activity,it caused!the difference is it was load by LayoutInflater just like @Nullable @Override...
Read more >Error inflating class androidx.appcompat.widget.Toolbar
Android.Views.InflateException Binary XML file line #1 in layout/toolbar: Error inflating class androidx.appcompat.widget.Toolbar.
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 had same issue. I solved it, Initializing BigImage before inflate the view (a fragment in my case).
In your activity write this line to initialize the Viewer:
BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));