支持一个APK为平板电脑和手机屏幕多屏 [英] Supporting one apk for multiple screens for tablet and mobile screen

查看:81
本文介绍了支持一个APK为平板电脑和手机屏幕多屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经creaated一个应用程序在移动和同一使用布局h600dp自定义布局文件上运行tablet.But同一.apk文件我已经面对的一个problem.Screen显示在平板电脑上并没有完全到来塔夫拉特屏幕。

I have creaated one application for mobile and same for tablate screen using layout-h600dp custom layout file to run same .apk file on tablet.But i have faced one problem.Screen showing on the tablet was not coming completely.

推荐答案

见下图:

http://3.bp.blogspot.com/-p5bJpmwLhE4/TmtdTGyZnmI/AAAAAAAAADg/u06CDhu3x34/s1600/4.JPG

做,在你的Andr​​oid清单文件的更改。

do that changes in your android manifest file.

也见下面的链接,它可以帮助你。

also see below links it may help you.

的http:// DJ- android.blogspot.in/2011/09/how-to-support-multiple-screens-in.html

一件事从清单文件中的所有活动的声明删除此

one more thing remove this from your all activity declaration in manifest file

安卓configChanges =keyboardHidden |方向

android:configChanges="keyboardHidden|orientation"

安卓configChanges =方向

android:configChanges="orientation"

以上后改变产生新的.apk文件。

after above change generate new .APK file.

有关更多信息,请参见:

for more information see:

http://developer.android.com/guide/practices/screens_support.html

这篇关于支持一个APK为平板电脑和手机屏幕多屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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