Hi I am trying to rotate a draw 9 image horiontally. But all the stretching is done.
Bitmap bmp = BitmapFactory.decodeResource(res,incomingColorId); Matrix matrix = new Matrix(); matrix.setScale(-1.0f, 1.0f); Bitmap incomingImageFlipped =Bitmap.createBitmap(bmp, 0,0,bmp.getWidth(),bmp.getHeight(),matrix,false); BitmapDrawable bd = new BitmapDrawable(incomingImageFlipped); listItemCellView.setBackgroundDrawable(bd.getCurrent()); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en