Android GridView 网格布局 使用
2010-08-21 06:29:00 来源:WEB开发网核心提示:}3. 给GridView指定AdapterJava代码GridView gv = (GridView) findViewById(R.id.gride);ImageList adapter = new ImageList(this);gv.setAdapter(adapter);GridView gv = (Grid
}
3. 给GridView指定Adapter
Java代码
GridView gv = (GridView) findViewById(R.id.gride);
ImageList adapter = new ImageList(this);
gv.setAdapter(adapter);
GridView gv = (GridView) findViewById(R.id.gride);
ImageList adapter = new ImageList(this);
gv.setAdapter(adapter);
所以最后效果图是这样的 网格布局
更多精彩
赞助商链接