创建具有可点击图片的GridView,安卓图片、GridView

由网友(待繁华落尽ン)分享简介:我要创建具有可点击图片一个gridview。I want to create a gridview having clickable images.. 在以往的图像被点击相应的值将显示网格视图下面。When ever an image is clicked a corresponding value will b...

我要创建具有可点击图片一个gridview。

I want to create a gridview having clickable images..

在以往的图像被点击相应的值将显示网格视图下面。

When ever an image is clicked a corresponding value will be shown below that grid view.

我现在面临的问题是设计的一部分,我不知道如何设计一个网格视图这样的..我每次尝试这样做,我得到了一些不好的结果.. 我没有Android的UI设计经验,截至目前。

The problem I am facing is in designing part, I dont know how to design a grid view like this.. every time I try to do that I get some bad results.. I have no android ui designing experience as of now.

请帮助!

推荐答案

的GridView 的ViewGroup 显示项目在二维,滚动网格。网格项目,采用自动插入到布局中的 ListAdapter

GridView is a ViewGroup that displays items in a two-dimensional, scrollable grid. The grid items are automatically inserted to the layout using a ListAdapter.

有关的介绍,你怎么能动态插入使用适配器的观点,读建筑平面布置有一个适配器。

For an introduction to how you can dynamically insert views using an adapter, read Building Layouts with an Adapter.

的http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews

和这些都是很好的的GridView 教程将帮助你

and These are good GridView tutorials will help you

http://www.androidhive.info/2012/02 / Android的GridView的布局 - 教程/

http://www.mkyong.com/android/android-gridview-example /

http://developer.android.com/guide/topics/ UI /设计/ gridview.html

阅读全文

相关推荐

最新文章