#
public View getView( final int position, View convertView, ViewGroup parent) { View view=convertView; if (view==null){ view=layoutInflater.inflate(R.layout.lable,null); } imageview=new ImageView(getContext()); imageview= (ImageView) view.findViewById(R.id.listimageview); SimpleTarget target = new SimpleTarget<Bitmap>() { @Override public void onResourceReady(Bitmap bitmap, GlideAnimation glideAnimation) { Drawable drawable = new BitmapDrawable(bitmap); Bitmap bitmap1 = ((BitmapDrawable)drawable).getBitmap(); Bitmap reflectedBitmap = BitmapUtil.createReflectedBitmap(bitmap1); BitmapDrawable drawable1 = new BitmapDrawable(reflectedBitmap); drawable1.setAntiAlias(true); imageview.setImageDrawable(drawable1); } }; Glide.with(getContext()).load(getItem(position).imgurl).asBitmap().into(target);
//Glide.with(getContext()).load(getItem(position).imgurl).into(imageview);
當在baseadpter中處理gilde得到的bitmap再載入進去。 。 。只有最後一個item才顯示
然而不處理bitemap直接loadinto進去則全部顯示。 。 。求解