Skip to content
New issue

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

自定义progress中有一点问题布局异常但可以运行,我找到个人解决办法,不知道有没有好的办法请后面追加: #51

Open
geogie opened this issue Jun 23, 2016 · 0 comments

Comments

@geogie
Copy link

geogie commented Jun 23, 2016

DisplayMetrics dm = new DisplayMetrics();
((Activity) paramContext).getWindowManager().getDefaultDisplay().getMetrics(dm);
perPixel = dm.widthPixels / countRecorderTime;
上面这段会导致在布局初始化的时候:报布局异常
这个在加载布局前获取:widthPixels 我是在工具类中widthPixels 初始化,在再自定义progress中用,就不会再提示了!!!!
如果有其他好的解决办法,请追加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant