AdjustViewBounds not working on older Android versions

I have a long image with a resolution of 400x760 pixels and I have placed it in the imageview using android:adjustViewBounds="true"

so there is no free space and the image will stretch. It worked on my Android 4.4, but when I tried it on 4 Androids it was small and did not stretch. Even in the Eclipse Graphical Layout tab when I have version 19 it works fine, but when I change it to version 17 (Android 4.2.2.) It is small. So how can I get it to work on older androids too?

Edit . This stretching is done because I have adjustViewBounds = "true", but here is the XML:

<ImageView 
    android:id="@+id/calculations"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    android:src="@drawable/calculations" /> 

      

+3


source to share





All Articles