如何设置Android的网格视图单元的大小? [英] How to set a cell size in Android grid view?

查看:240
本文介绍了如何设置Android的网格视图单元的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图与一个应用大图标的GridView,但我无法找到Android上的网格布局修改单元格大小的教程。谁能给我一个例子或一个关于它的链接吗?

I am trying to make a gridview with large icon for an app but I couldn't find any tutorial about modifying a cell size on a grid layout on android. Can anyone give me an example or a link about it please?

感谢。

推荐答案

就像其他的 adapterViews 时,上GRIDVIEW(它扩展适配器视图)被确定孩子的是基于他们想要成为尺寸的大小,作为写入的机器人API中:

just like the other adapterViews ,on gridView (which extends adapterView) the size that is determined of the children is based on the size that they want to become , as written in the android API:

一个AdapterView是一个视图,其子女通过一个适配器来决定。

An AdapterView is a view whose children are determined by an Adapter.

这篇关于如何设置Android的网格视图单元的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆