我创建了仅针对平板设备的 Android 应用程序。在 AndroidManifest 中,我设置了以下屏幕支持:
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:requiresSmallestWidthDp="600"
android:smallScreens="false"
android:xlargeScreens="true" />
我的所有图形都是矢量,因此 XML 文件直接放在drawable
目录中。只有位图是启动器图标,如下所示:
res\mipmap-hdpi\ic_launcher.png
res\mipmap-xxhdpi\ic_launcher.png
res\mipmap-xhdpi\ic_launcher.png
res\mipmap-xxxhdpi\ic_launcher.png
res\mipmap-mdpi\ic_launcher.png
在开发人员控制台中,我收到警告说我的应用程序不是为平板电脑正确设计的“使用为平板电脑屏幕设计的资产”。
我已经尝试添加mipmap-large-mdpi\ic_launcher.png
,mipmap-xlarge-mdpi\ic_launcher.png
但它对警告没有影响。
我该怎么做才能让我的应用程序为平板电脑正确设计?