i want my bitmap in the center of my screen..i m trying it that way but its not working...
Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.d
You can try this :
int width = containerBitmap.getWidth(); int height = containerBitmap.getHeight(); float centerX = (width - centeredBitmap.getWidth()) * 0.5f; float centerY = (height- centeredBitmap.getHeight()) * 0.5f;
You can use it to draw a bitmap at the center of another bitmap.