【发布时间】:2012-04-06 13:08:07
【问题描述】:
我能够从我的手机中检索图片并将它们存储在一个数组中。之后,我将它们显示在屏幕上。但它们都有不同的形状和大小。我想以相同的大小和形状显示它们。有什么想法吗?
photoPaths = new ArrayList<String>();
getAllPhotos(Environment.getExternalStorageDirectory(), photoPaths);
images = new Bitmap[photoPaths.size()];
apa = (AnimationPhotoView)findViewById(R.id.animation_view);
for(int i=0;i<photoPaths.size();i++)
{
File imgFile = new File(photoPaths.get(0));
if(imgFile.exists())
{
images[0] = decodeFile(imgFile);}
【问题讨论】:
标签: android bitmap android-imageview android-image