Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 30 个项目的 ArrayList,我在我的网格视图中膨胀这些项目。我只充气了 20 件商品。从 0-3,5-8,10-13,15-18。并留下其余的。
充气时如何在gridview中跳过arraylist中的元素
public int getCount() { if(list.size() > 20) 返回 20; 返回列表大小();}