public View getView(int position, View convertView, ViewGroup parent) {
   ImageView i = new ImageView(mContext);
   i.setFocusable(true);
   i.setFocusableInTouchMode(true);
   i.setImageResource(myCards[position]);
   i.setScaleType(ImageView.ScaleType.FIT_XY);
   i.setAdjustViewBounds(true);
   i.bringToFront();
   return i;
 }
示例#2
0
 protected void onPostExecute(Bitmap result) {
   bmImage.setImageBitmap(result);
   bmImage.setFocusable(false);
   bmImage.setFocusableInTouchMode(false);
 }