其他分享
首页 > 其他分享> > Android:充气布局需要很长时间

Android:充气布局需要很长时间

作者:互联网

Found a Solution!

I now use a ViewPager instead of a ViewFlipper.
The Views are now generated within my run() method (which is already there because I fetch data from the web) and saveed in a Map.
In my Handler I only call pagerAdapter.notifyDataSetChanged() the pagerAdapter uses the Map of views and it works smooth and fast.
So I’m now looking for a away to have the ViewPager scroll endless, but thats another problem not connected to this one

标签:viewflipper,android,multithreading,blocking,inflate
来源: https://codeday.me/bug/20190729/1574194.html