Android GridView 网格布局 使用
2010-08-26 00:17: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);
所以最后效果图是这样的 网格布局 下载源代码
[]
赞助商链接