android.view.InflateException: Binary XML file line #12: Error inflating class

后端 未结 30 2070
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 13:48

I am receiving many errors of kind displayed in the subj. These errors seems to be occasional and I cannot reproduce them. From stack I can learn that such error may occurs

30条回答
  •  失恋的感觉
    2020-11-22 14:41

    ViewFlipper loads all images into memory during layout inflating. Because my images are big it takes many memory, I replaced ViewFlipper with ImageSwitcher which can change the images with animation like ViewFlipper but it loads only one image at the time.

提交回复
热议问题