Hi, I have created a ImageView
BitmapDrawable bitmapDrawalbe = new BitmapDrawable(); ImageView imageView = new ImageView(this); imageView.setBackgroundDrawable(bitmapDrawalbe); where BitmapDrawable has an attribute of 'Bitmap' and its getWidth and getHeight are: public int getMinimumWidth() { return mBitmap.getWidth(); } public int getMinimumHeight() { return mBitmap.getHeight(); } But when I load my application in HierarchyView, the layout_width is 80 and layout_height is 100, but my Bitmap i put in BitmapDrawable is 96 (width) and 144 (height). Do I need to set the height/width specifically for my ImageView to match my backgroundDrawable? Or it will pick up automatically. Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---