Is it possible to set different height while creating bitmap based on device. I mean to say that for phones i want to set different height to the bitmap & for tablets i want to set different height. Right now the height and width of the bitmap is declared in dimen.xml file & i am using same height for all devices(Phone & tablets).
But my requirement is to set different bitmap height when showing in tablets. So how that can be done.
code used to create bitmap
Bitmap canvasBitmap = Bitmap.createBitmap(getResources().getDimension(R.dimen.width), getResources().getDimension(R.dimen.height), Bitmap.Config.ARGB_8888);