我在布局中为imageView
指定了一个区域,我应该通过参考其路径来显示图像。现在,我将图像显示在各自的imageview
上,但
(1)图像小于imageView
的分配图像。而我想要的是imgae
恰好适合imageView
(2)图像逆时针旋转90度。我想要它 正常显示没有旋转?
请帮我实现上述要点
上次更新
Java_Code:
private void displayMeetinPointImageInsideImageView(DataBaseRow dataBaseRow,
ImageView imgSpaceIv) {
// TODO Auto-generated method stub
if (dataBaseRow == null) {
Log.w(TAG, "@displayMeetinPointImageInsideImageView(): The Object Of The DataBaseRow Class Is NULL, Maybe "
+ "It Was Not Instantiated.");
return;
}else if (imgSpaceIv == null) {
Log.w(TAG, "@displayMeetinPointImageInsideImageView(): The Variable Of Type ImageView Is NULL, Maybe It Was "
+ "Not Instantiated.");
return;
}else if (dataBaseRow.getImgPath().isEmpty()) {
Log.w(TAG, "@displayMeetinPointImageInsideImageView(): dataBaseRow.getImgPath() Is Empty");
return;
}else {
String imgPathString = dataBaseRow.getImgPath();
Options options = new Options();
options.inSampleSize = 3;
Bitmap bitmap = BitmapFactory.decodeFile(imgPathString);
Bitmap imgbitmap = BitmapFactory.decodeFile(imgPathString, options);
imgSpaceIv.setImageBitmap(imgbitmap);
}
}
答案 0 :(得分:0)
查看您的日志:
dataBaseRow.getImgPath()= /storage/emulated/0/DCIM/MPL/5th guy hinging.jpeg
您的文件名中有空格。