开发者

Making an application in android 2.2 version compatible with android 3.0

开发者 https://www.devze.com 2023-04-05 00:53 出处:网络
I have an application written in Android 2.2 version. Now I want to make this app compatible in all tablets.

I have an application written in Android 2.2 version. Now I want to make this app compatible in all tablets.

I went through the link Optimizing apps for 3.0

As per the details mentioned, I created folders: drawable-xhdpi(for storing images) a开发者_如何转开发nd layout-xlarge and layout-xlarge-land to keep the layouts.

Added <uses-sdk android:targetSdkVersion="11" android:minSdkVersion="8"/> in manifest too.

But when I ran the app, the drawables are not taken from my xhdpi folder. So images getting displayed are too small. What may be the reason for this? Should I have to add anything more? Also whether this xhdpi and xlarge folders will help me out for all types of tablets(i.e. tablets with different screen sizes)?

Please reply. Thanks in advance.


The answer is here by anujprashar:

... For 10.1 tab you should use drawable-xlarge folder ...

Compared to that answer, I didn't add <supports-screens> and it works on my galaxy tab, also works for Nook color (cm7).

0

精彩评论

暂无评论...
验证码 换一张
取 消