由网友(闻香识女人)分享简介:我还有很长的GridView自定义适配器,我怎么知道什么时候GridView中完全显示出来,并准备好了?I have a long GridView with custom adapter, How do I know when GridView is completely displayed and ready?...
我还有很长的GridView自定义适配器,我怎么知道什么时候GridView中完全显示出来,并准备好了?
I have a long GridView with custom adapter, How do I know when GridView is completely displayed and ready?
下面是我在code问题:
Here's my problem in code:
dashboard = (GridView) findViewById(R.id.dashboard);
dashboard.setAdapter(new ListItemsAdapter(this, allIcons));
AlertSomeItemsOfTheListView();
序列中的方法AlertSomeItemsOfTheListView被执行之前将GridView被完全抽出。
in the sequence the method "AlertSomeItemsOfTheListView" is executed before the GridView is completely drawn.
推荐答案
您可以得到的 ViewTreeObserver >
相关推荐
最新文章