我正在加载图像到图库视图,同时滚动图像,它似乎是一种摇摇欲坠或似乎卡住..我希望有一个平滑的滚动画廊。只有当我在10.1三星银河平板电脑中滚动时才会发生这种情况。请帮我解决这个问题。画廊滚动不光滑,是一种不稳定,而在平板电脑滚动
我用下面的代码
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final int pos = position;
View retval = LayoutInflater.from(parent.getContext()).inflate(
R.layout.horrizontallistitem, null);
final ImageView imgitem = (ImageView) retval
.findViewById(R.id.hlvItem);
try {
imgitem.setImageBitmap(CommonKeys
.getBitmapFromAsset("_images/" + dataObjects[pos]
+ ".png"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return retval;
}
这只发生在平板电脑上,而不是任何其他手机? – Maurice 2012-02-15 08:02:57
是的,它只发生在平板电脑上 – cavallo 2012-02-15 08:26:19