I have this image in my app, when I tested it in my Droid X and Droid bionic and other smaller devices, it looks fine. But when I tested it on my Android Tablet, the image was stretched. I just want to know if there is a proper way to solve this issue.
Note: I have tried adding the actual size of the image like 200dp by 300 dp. But it still don’t work
Here is my code
<RelativeLayout
android:id="@+id/image"
android:layout_alignParentTop="true"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/kittens"/>
</RelativeLayout>
don’t use wrap_content for ImageView, instead use dp like: