设计针对平板电脑的Andr​​oid应用程序 [英] Designing Android apps for tablets

查看:122
本文介绍了设计针对平板电脑的Andr​​oid应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Play开发者控制台,它说:

In the Play developer console it says:

您APK似乎并没有被设计为平板电脑

Your APK does not seem to be designed for tablets

不过,我已经添加布局来的布局sw600dp 布局sw600dp陆布局sw720dp 布局sw720dp -land 的文件夹。完整的清单(因为它):

But I have added layouts to layout-sw600dp, layout-sw600dp-land, layout-sw720dp and layout-sw720dp-land folders. The complete manifest (as it is):

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.technicosa.unjumble"
android:versionCode="1"
android:versionName="1.0" >

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

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Theme.Sherlock.Light.DarkActionBar" >
    <activity
        android:name="com.technicosa.unjumble.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.technicosa.unjumble.UserSettingsActivity"
        android:label="@string/title_activity_user_settings" >
    </activity>
</application>

该应用程序在两个的Nexus 7和Nexus 10在模拟器完美运行。此外,在根据优化建议开发者控制台,它说:

The app runs perfectly on both Nexus 7 and Nexus 10 in the emulator. Also in the developer console under optimization tips it says:

您的生产APK需要满足以下条件:使用10英寸的平板电脑可用的屏幕空间

Your Production APK needs to meet the following criteria: Uses available screen space on 10-inch tablets

我的应用程序的屏幕截图:

A screenshot of my app:

尽管应用程序似乎是在平板电脑上运行(我只在模拟器测试),必须​​做什么,以满足播放标准是什么?

While the app seems to run on tablets (I have tested only on emulator), what must be done to fulfill the Play criteria?

推荐答案

更​​换文件夹布局sw600dp,布局sw600dp陆,布局sw720dp和布局sw720dp,土地布局XLARGE,布局XLARGE陆加了新的消息:你的apk似乎并没有被设计为平板电脑

Replacing folders layout-sw600dp, layout-sw600dp-land, layout-sw720dp and layout-sw720dp-land with layout-xlarge, layout-xlarge-land added a new message: "your apk does not seem to be designed for tablets."

解决了之后发生了什么规定这里。

Solved the problem after what's stated here.

充分利用额外的屏幕面积可在片

      
  • 寻找机会,包括额外的内容或者使用的现有内容的替代治疗。

  • Look for opportunities to include additional content or use an alternative treatment of existing content.

使用在平板电脑屏幕的多面板布局,以单一的观点结合成一个复合视图。这使您可以更有效地使用额外的屏幕区域,使用户更容易浏览您的应用程序。

Use multi-pane layouts on tablet screens to combine single views into a compound view. This lets you use the additional screen area more efficiently and makes it easier for users to navigate your app.

这个问题确实是白色的空间,没有什么做的XMLS。

The problem was really the white space and had nothing to do with the xmls.

我设法让该消息7i的标签被重新安排布局,覆盖屏幕,并没有留下太多的空白消失。但不是为10I片的面积过大,我的应用程序有非常少的内容。我必须考虑更多的内容。

I managed to make the message for 7i tabs go away by rearranging the layouts to cover the screen and not leave too much white space. But not for the 10i tablets as the area is too big and my app has very less content. I must consider additional content.

这篇关于设计针对平板电脑的Andr​​oid应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆