Android增加了gridview点击速度 [英] Android increase gridview click speed
问题描述
我在Android中使用GridView。我需要尽可能多地注册点击,但是即使没有可执行的代码,gridview对点击的反应非常缓慢......是否有可能加快速度?
I'm using a GridView in Android. I need to register as many clicks as possible, but gridview reacts to clicks very slow, even if there is no acutal code to execute... is there a possibility to speed this up?
推荐答案
取决于应用程序,您可能需要编写自定义组件。
Depending on the application, you might want to code up a custom component.
我有一个类似的问题,并用基于TableLayout的组件替换了旧的gridview。这是更多的工作,但最终是值得的(更快和更灵活)。
I had a similar problem and replaced the old gridview with a component based on TableLayout. It was more work, but was worth it in the end (faster and more flexible).
这是一个方便您开始使用的文章:
Here's a handy article to get you started:
http://developer.android.com /guide/topics/ui/custom-components.html
这篇关于Android增加了gridview点击速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!