开发者

Android - how do you remove Honeycomb's "zoom to fill" option for your app?

开发者 https://www.devze.com 2023-04-12 05:58 出处:网络
While it\'s probably handy for something (though I\'ve yet to find it helpful) the new \"zoom to fill\" option is appearing for my app when it is run on my Android 3.2 tablet. My app is compatible wit

While it's probably handy for something (though I've yet to find it helpful) the new "zoom to fill" option is appearing for my app when it is run on my Android 3.2 tablet. My app is compatible with earlier versions of Android (down to 2.1-update1). In searching for info on how to disable this, I've found tons of sites saying it can be done but not how it can be done! So, how do I keep the Honeyc开发者_开发技巧omb "zoom to fill" option from appearing for my app?


Your manifest must indicate you support tablet-sized screens: http://android-developers.blogspot.com/2011/09/preparing-for-handsets.html and http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

Make sure for instance that you have:

android:xlargeScreens="true"
android:requiresSmallestWidthDp="600"

in your support-screens tag.


Set target sdk version to >= 11 if you don't want the "zoom to fill" feature, < 11 otherwise!

0

精彩评论

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

关注公众号