this must be somethng very simple I\'m overlooking, but I have the following problem (the post is rather lengthy, but I want to provide as much info as possible :) ).
I
guys to avoid this problem always return newly created object in getView()
public View getView(int position, View convertView, ViewGroup parent) {
ImageView imageView;
TextView textView;
LinearLayout linearlayout = new LinearLayout(mContext);
//if (convertView == null) {
imageView = new ImageView(mContext);
textView = new TextView(mContext);
//imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
imageView.setAdjustViewBounds(false);
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setPadding(4, 8, 8, 8);
imageView.setBackgroundResource(mThumbIds[position]);
textView.setText(mThumbText[position]);
textView.setGravity(0x01);
textView.setMaxLines(2);
//textView.setPadding(20, 0, 0, 0);
linearlayout.addView(imageView,0);
linearlayout.addView(textView,1);
linearlayout.setPadding(4, 4, 4, 4);
linearlayout.setOrientation(LinearLayout.VERTICAL);
linearlayout.setGravity(0x01);
// } else {
//linearlayout = (LinearLayout) convertView;
//}
return linearlayout;
}