Hi, I've an ImageView inside a ScrollView that has the image and several other controls. The problem is that when I create the view I don't know the size of the image, and when I know it and I put the image inside the ImageView it doesn't scale.
I've tried all the ScaleType modes and also used a custom matrix. But the problem is that the bitmap is scaled inside the image view component but the height of the component doesn't change to accommodate the image. I've tried to change Image layout_height, then use requestLayout(), but the size of the ImageView never changes. I'm doing something wrong or missing something? Here is my layout for if it's relevant: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:id="@+id/prediction_main_container" > <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/prediction_image_container" > <ImageView android:id="@+id/prediction_image" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:scaleType="matrix" android:adjustViewBounds="true" /> <!-- --> A lot of thanks in advance, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

