android:到达市场上所有屏幕的最佳方式
我最近完成了我的第一个 Android 应用程序,并将在几天内将其提交到市场。我正在研究支持所有屏幕并覆盖尽可能多的人的方法。我已经为所有屏幕准备了所有图形,并在模拟器中测试了它们,它们看起来都很棒,但我没有在清单中添加任何附加代码来支持所有屏幕。
我遇到了很多谈论使用以下代码的主题:
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true" />
但我不想使用它,因为我的 minSdkVersion 是 8 并且我需要为 xlargeScreens 准备不同的 apk。我只是不想这样做。
我的问题是:如果我根本不在清单文件中使用上述代码,我的应用程序对所有设备都可见吗?
先感谢您。
I recently finished my first Android application and will submit it to market in a couple of days. I was looking into the ways of supporting all screens and reaching as many people as I can. I already prepared all graphics for all screens and tested them in emulator and they all look great but I have not put any addition code in the manifest to support all the screens.
I encountered many topics talking about using following code:
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true" />
but I do not want to use it because my minSdkVersion is 8 and I need to prepare a different apk for xlargeScreens. I simply do not want to do it.
My question is: If I do not use the above code in the manifest file at all will my application be visible to all devices?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不想要 xlarge 那么
如果您根本不使用它,那么将为您设置一些默认值。
默认情况下,您的应用程序将不支持小屏幕,将支持
普通屏幕,并且可以通过某些方式支持大屏幕和超大屏幕
Android 内置自动转换代码。
但最好是明确的,所以你一定要在清单中添加支持屏幕
注意:默认值取决于你使用的构建引擎,所以如果你使用 eclipse、ant 或 maven 以外的其他东西,并且你的支持屏幕未定义在您的清单中,默认值可能与此不同
if you do not want xlarge then
if you do not use this at all then some default values will be set for you.
By default, your application will not support small screens, will support
normal screens, and may support large and extra-large screens via some
automated conversion code built into Android.
But it is best to be explicit so you should definitely add supports-screens at you manifest
Note: That the defaults depends on the build engine you use, so if you use something else than eclipse, ant or maven and you live supports-screens undefined in you manifest the defaults can be different then this
除了屏幕尺寸之外,还有更多因素。但是,是的,您的应用程序现在将支持所有屏幕尺寸。
There are more factors rather than screen sizes. But yes, it your app will now support alls screen sizes.