图片在xml文件中直接加载.9文件,可能会因为图片压缩的缘故产生锯齿,如果使用
ImageView imageview = (ImageView) view
.findViewById(R.id.introduce_iv1);
Bitmap bitmap = BitmapManager.getLocalBitmap(
AppIntroduceActivity.this,R.drawable.introduce_1);
setBitmap(imageview,bitmap);
/**
* set bitmap
* @author huiych
* */
private void setBitmap(ImageView imageview,Bitmap bitmap){
if(bo){
imageview.setImageBitmap(bitmap);
}else {
BitmapDrawable bd=new BitmapDrawable(bitmap);
imageview.setBackgroundDrawable(bd);
}
}
就会降低这种风险,我实验后不会产生锯齿