i trying set image of imageview byte array this:
bitmap bitmap = bitmapfactory.decodebytearray(imagedata, 0, imagedata.length); imageview imageview = (imageview)findviewbyid(r.id.imageview); imageview.setimagebitmap(bitmap);
but image appears have quite large black padding @ top , bottom, though actual image data not have these. imageview @ top of linearlayout inside scrollview, ideas?
my imageview designed this:
<imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageview"/>
solved, added
android:adjustviewbounds="true"
into xml file.
Comments
Post a Comment