获取闪烁布局的背景时滚动android系统的列表视图? [英] Gets Flickering layout's background while scrolling the listview in android?

查看:144
本文介绍了获取闪烁布局的背景时滚动android系统的列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

而滚动列表视图中,布局背景被忽隐忽现。即布局是有一个背景图像。此图片将变得不可见,并重新加载滚动时的所有时光。如何纠正呢?任何想法?

请注意:其发生的内在的Andr​​oid数组适配器了。

  setListAdapter(新ArrayAdapter<串GT;(这一点,
                android.R.layout.simple_list_item_1,list_value));


解决方案

在看一看<一个href=\"http://stackoverflow.com/questions/2706913/how-to-make-android-apps-background-image-repeat/2706944\">this回答,ESP。在的android:cacheColorHint 部分

while scroll the listview, the Layouts background gets flickering. that is the layout is has a background image. this image will gets invisible and reload all the time while scrolling. how to rectify this? Any Idea?

Note: its happening for inbuilt android Array Adapter too.

setListAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, list_value));

解决方案

Have a look at this answer, esp. the android:cacheColorHint part.

这篇关于获取闪烁布局的背景时滚动android系统的列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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