Issue
I am making an android app that displays an image in the main activity. To adjust the size of this image on different screen size devices I made different drawable folders and added images of corresponding resolutions. In android studio the image is perfectly fitting on Nexus 7 device (1200x1920; xhdpi) but is too big for the GalaxyNexus and Nexus 4 which are also xhdpi devices. Why is this so? Can somebody suggest a way to fix this problem? Thanks in advance !!
<ImageView
android:id="@+id/imageView1"
android:src="@drawable/img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Solution
I found the fix finally. This can be taken care of using another folder drawable-large-xhdpi for the tablet.
Answered By - varunkr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.