Guest User

Untitled

a guest
Aug 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. How to convert int array to bitmap array list
  2. int[] images = { R.drawable.hm1, R.drawable.hm2, R.drawable.hm3,
  3. R.drawable.hm4, R.drawable.hm5, R.drawable.hm6, R.drawable.hm7,
  4. R.drawable.hm8, R.drawable.hm9, R.drawable.hm10, R.drawable.hm11,
  5. R.drawable.hm12, R.drawable.hm13, R.drawable.hm14, R.drawable.hm15,
  6. R.drawable.hm16, R.drawable.hm17, R.drawable.hm18, R.drawable.hm19,
  7. R.drawable.hm20 };
  8.  
  9. Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
  10.  
  11. Bitmap[] images = { BitmapFactory.decodeResource(getResources
  12. (),R.drawable.hm1),BitmapFactory.decodeResource(getResources
  13. (),R.drawable.hm2),BitmapFactory.decodeResource(getResources(),R.drawable.hm3)};
Add Comment
Please, Sign In to add comment