We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
出现这个原因在网上搜了一下,于是调用Fresco.initialize(this);来初始化,于是不会报错,但是图片不显示出来,只有一个背景阴影色。
The text was updated successfully, but these errors were encountered:
在你的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);
Sorry, something went wrong.
No branches or pull requests
出现这个原因在网上搜了一下,于是调用Fresco.initialize(this);来初始化,于是不会报错,但是图片不显示出来,只有一个背景阴影色。
The text was updated successfully, but these errors were encountered: