GithubHelp home page GithubHelp logo

android.view.InflateException: Binary XML file line #23: Binary XML file line #23: Error inflating class com.facebook.drawee.view.SimpleDraweeView about android-addialog HOT 6 CLOSED

yipianfengye avatar yipianfengye commented on August 15, 2024
android.view.InflateException: Binary XML file line #23: Binary XML file line #23: Error inflating class com.facebook.drawee.view.SimpleDraweeView

from android-addialog.

Comments (6)

han361769045 avatar han361769045 commented on August 15, 2024

List advList = new ArrayList<>();
for (AdvertModel am : app.getHomePupAd()) {
AdInfo adInfo = new AdInfo();
adInfo.setActivityImg(am.AdvertImg);
advList.add(adInfo);
}
AdManager adManager = new AdManager(getActivity(), advList);
adManager.setOverScreen(true)
.setPageTransformer(new DepthPageTransformer());
adManager.showAdDialog(AdConstant.ANIM_UP_TO_DOWN);

from android-addialog.

han361769045 avatar han361769045 commented on August 15, 2024

image

from android-addialog.

yipianfengye avatar yipianfengye commented on August 15, 2024

应该是fresco库没下载下来,clean或者是rebuild一下试试呢

from android-addialog.

star-andy avatar star-andy commented on August 15, 2024

我也出现了相同的问题,发现fresco库已经同步下来,clean和rebuild都不起作用
@han361769045 @yipianfengye

from android-addialog.

star-andy avatar star-andy commented on August 15, 2024

@yipianfengye 找到原因了,如果依赖你库的app有Application就会覆盖掉你库中的LApplication,导致fresco初始化失败。 请有时间修正下 去掉库中的LApplication,放在其他地方初始化。

from android-addialog.

yecaler avatar yecaler commented on August 15, 2024

在你的Application里初始化这些内容:

Fresco.initialize(this); DisplayMetrics dm = getResources().getDisplayMetrics(); DisplayUtil.density = dm.density; DisplayUtil.densityDPI = dm.densityDpi; DisplayUtil.screenWidthPx = dm.widthPixels; DisplayUtil.screenhightPx = dm.heightPixels; DisplayUtil.screenWidthDip = DisplayUtil.px2dip(getApplicationContext(), dm.widthPixels); DisplayUtil.screenHightDip = DisplayUtil.px2dip(getApplicationContext(), dm.heightPixels);

from android-addialog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.