滚动问题的GridView Android中 [英] Scrolling issues with GridView in Android

查看:115
本文介绍了滚动问题的GridView Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的pretty的简单的GridView怪异的滚动问题。网格中的每个项目只是一个ImageView的和一个TextView。该活动本身是一个简单的应用程序选择。它看起来像在Android的一个粗略的版本基本应用程序托盘。

I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android.

问题是,花一些时间通过我的看法滚动之后,就必然让我继续滚动的图标顶行,黑屏,并且滚动条会消失,我卡住了。

The issue is that after spending some times scrolling through my view, it will inevitably allow me to continue scrolling past the top row of icons, to a blank screen, and the scroll bar will disappear, leaving me stuck.

这不会发生,每次我去视图的顶部,只是有时,通常只有在一些过多的滚动。

It doesn't happen every time I go to the top of the view, only sometimes, and usually only after some excessive scrolling.

如果我碰巧注意到这个问题,并抓住它之前,最上面一行消失在屏幕的底部,我通常可以滚动返回视图,并发现一些图标丢失。有网格空的空间,我只能假设,这些图标都被转移到一些奇怪的位置,这是允许的看法滚过顶部。

If I happen to notice the problem and catch it before the top row disappears off the bottom of the screen, I can usually scroll back through the view and spot some icons missing. There are empty spaces in the grid, and I can only assume that those icons have been moved to some bizarre position, which is allowing the view to scroll past the top.

这是超出了基本的Hello World我的第一个Android应用程序,所以它可能是我刚刚搞砸了东西在我的布局文件。我也意识到,这可能是一个pretty的混淆的描述,所以我希望有人经历了这一点,我的搜索​​能力,根本无法找到它。

This is my first Android app beyond a basic Hello World, so it's likely that I've just screwed up something in my layout files. I also realize that this is probably a pretty confusing description, so I'm hoping someone has experienced this and my search abilities simply were unable to find it.

我可以张贴我的布局文件或其他code。如果有人认为这是很有用的。

I can post my layout files or other code if someone thinks that's useful.

呵呵,程序是建立针对1.5,但在我的手机上2.2(不管的2.2状态是悄悄上周)正在运行。我没有足够的应用程序,以在模拟器上测试,但很可能设置的东西了,如果有人觉得有必要的。

Oh, and the program is built against 1.5, but is running on 2.2 (whatever state of 2.2 that was that snuck out last week) on my phone. I don't have enough apps to test this on an emulator, but could probably set something up if someone felt it necessary.

在此先感谢在这个问题上的任何帮助。

Thanks in advance for any help on the issue.

推荐答案

我已经解决了:在链接<一个href="http://stackoverflow.com/questions/5944250/gridview-cannot-show-image/5958097#5958097">GridView不能显示图片你可以尝试

i have solved it: in the link GridView cannot show image you can try

这篇关于滚动问题的GridView Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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