在android的普及应用(手机和平板) [英] Universal application in android (phone and tablet)

查看:121
本文介绍了在android的普及应用(手机和平板)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android中的通用应用程序,它应该运行在Android手机和Android平板电脑,我知道程序,使针对Android手机的应用程序,但如何使Android平板电脑,请指引我的。

I am developing an Universal application in android which should run on android phone and android tablet, I know the procedure to make an application for android phone but how to make for android tablet, Please guide me for this.

感谢提前。

推荐答案

您应该支持不同的屏幕布局。看一看在上多屏页面

You should support the different screen layouts. Take a look over at the multiple screen page

它给你的,除解释如何保存多个版本的不同分辨率的文件,ALS这块code的清单:

It gives you, amongst explanation how to save multiple versions of files for different resolutions, als this piece of code for the manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true" />
    ...
</manifest>

您可以进行不同的绘制目录等,如链接解释。

You can make different drawable directories etc, as explained in the link.

这篇关于在android的普及应用(手机和平板)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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