Skip to content Skip to sidebar Skip to footer

Android Stretches The Layout File Instead Of Loading The Correct File In The Res Folders

I have a handset version of an activity and a tablet version of the same activity. My handset version is res/layout/activity.xml while my 7' tablet version is res/layout-sw600dp/a

Solution 1:

Found a solution. What was causing this weird behavior is that I was missing the following attributes in my AndroidManifest.xml file:

<uses-sdk android:minSdkVersion="9"
      android:targetSdkVersion="19"
      android:maxSdkVersion="19" />

Post a Comment for "Android Stretches The Layout File Instead Of Loading The Correct File In The Res Folders"