首页 \ 问答 \ 如何在风景mdoe手机上运行我的Android平板电脑应用程序时看起来一样(How can I make my android tablet app to look the same when it runs on phone in landscape mdoe)

如何在风景mdoe手机上运行我的Android平板电脑应用程序时看起来一样(How can I make my android tablet app to look the same when it runs on phone in landscape mdoe)

我有平板电脑的Android应用程序布局。 它的布局基于“风景”(即,当我在平板电脑上运行时,它看起来像我想要的方式(默认情况下)。

但是当我在手机上运行相同的应用程序时,android以纵向模式运行,(它将我的“风景”布局挤压成一幅肖像)。

我尝试在我的Manifest文件中将'android:screenOrientation ='landscape'放入我的活动中。 但这并没有解决它。

基本上,我想要的是当我将手机旋转90%(宽度>高度)时,我希望手机布局看起来与我在平板电脑上看到的相同(默认为风景)。

我怎样才能做到这一点? android:screenOrientation ='landscape'不起作用。

基本上,我想要一些游戏'AngryBird',它总是以横向模式运行,无论是手机还是平板电脑以及手机是否旋转。


I have a android app layout for tablet. Its layout is 'landscape' based (i.e. it looks the way i want when I run on tablet (by default landscape).

But when I run the same app on a phone, android runs in portrait mode, (it squeeze my 'landscape' layout into a portrait ).

I have tried putting 'android:screenOrientation='landscape' in my activity in my Manifest file. But that does not fix it.

Basically, what I want is when I rotate the phone by 90 % (the width is > height), I want the phone layout looks the same as what i see on tablet (which is landscape by default).

How can I do that? android:screenOrientation='landscape' does not work.

Basically, I want some thing the game 'AngryBird', it always runs in landscape mode regardless it is phone or tablet and whether the phone is rotated.


原文:https://stackoverflow.com/questions/10307576
更新时间:2021-08-16 14:08

最满意答案

如果您需要良好的数据分析工具包,您可以花一些时间尝试R ---免费软件统计/数据分析工具包。 它具有非常好的图形功能,特别是通过用于静态图形的ggplot2包和用于动态数据探索的ggobi

数据导入/导出也很简单--- R可以通过ODBC等导入csv / tsv或Excel数据。

学习需要一些时间,但之后您不受工具功能的限制:R可以处理大量的分析任务:简单的数据处理,旋转。 聚合任务到高级统计/机器学习方法:聚类/分类/回归等

如果您对使用简单计算的数据转换更感兴趣,可以使用某种Extract-Transform-Load工具包,例如Talend Open Studio


If you need good data analysis toolkit, you can spend some time and try R --- free software statistics/data analysis toolkit. It has pretty good graphic capabilities, especially via ggplot2 package for static graphics and ggobi for dynamic data exploration.

Data import/export pretty easy too --- R can import csv/tsv, or Excel data via ODBC and so on.

It takes some time to learn, but after that you are not limited with tool capabilities: R can handle plenty of analysis tasks: from simple data crunching, pivoting. aggregation tasks to advanced statistics/machine learning methods: clustering/classification/ regression etc.

If you more more interested in data transformation with simple calculations, you can use some kind of Extract-Transform-Load toolkit, such as Talend Open Studio.

相关问答

更多
  • 1.电脑桌面上,点击右键-新建-Microsoft excel工作表。 2.打开Microsoft excel工作表。 3.点击菜单栏中文件,选择并进入选项界面。 4.点击加载项,选择分析工具库。 5.点击底部的转到,进入加载宏界面。 6.在分析工具库前打钩,确认即可,此时excel表格右上角菜单栏中就会出现“数据分析”命令选项。
  • 我目前使用XLRD模块从Excel电子表格和插入光标吸取数据以创建要素类,这非常有效。 您应该可以使用搜索光标遍历要素类记录,然后使用XLWT Python模块( http://www.python-excel.org/ )将记录写入Excel。 I currently use the XLRD module to suck in data from an Excel spreadsheet and an insert cursor to create a feature class, which work ...
  • 打开(但不关闭)Excel文件的最简单方法是使用WINOPEN : winopen('myFile.xlsx') The simplest way to open (but not close) an Excel file is to use WINOPEN: winopen('myFile.xlsx')
  • 我担心,你的理解是不正确的。 Aspose.Cells API是使用托管代码构建的,它们永远不需要Microsoft Office或Microsoft Excel安装在机器上以使用其功能或操作Excel文档格式。 它应该是Microsoft Office自动化替代品和独立库。 注意:我在Aspose担任Support developer / Evangelist。 I am afraid, your understanding is not correct. Aspose.Cells APIs are bu ...
  • 如果您在计算机上运行Access,则可以在Access中打开电子表格以从中创建新数据库,或使用“导入数据”将Excel电子表格导入表格。 如果这是一个大问题,请使用Office Automation来加快处理速度。 否则,Access连接引擎(ACE)是一个ODBC驱动程序,可以连接到Access和Excel文件。 您可以编写一些内容来在它们之间传输数据。 它是免费的,但有点工作。 或者,您可以使用SSIS,它也可以免费使用SQL Server Express版本。 但肯定会有很多开销只是为了在文件之间进行 ...
  • 我以前必须这样做,它非常耗时但你可以把它写到客户端的XML文件中。 一个好的起点是创建一个新的Excel工作表,将其另存为XML文件,然后您可以找出需要更改的位,然后找出将正确的信息写入XML文件的方法。 虽然我说它需要相当多的时间! 编辑- 刚刚找到这个让你看看 - http://www.rshelby.com/post/creating-excel-worksheet-from-silverlight.aspx I had to do this previously, its pretty time c ...
  • 如果您需要良好的数据分析工具包,您可以花一些时间尝试R ---免费软件统计/数据分析工具包。 它具有非常好的图形功能,特别是通过用于静态图形的ggplot2包和用于动态数据探索的ggobi 。 数据导入/导出也很简单--- R可以通过ODBC等导入csv / tsv或Excel数据。 在R和ggplot的勘探数据分析中非常好的介绍 R简介 数据导入/导出 学习需要一些时间,但之后您不受工具功能的限制:R可以处理大量的分析任务:简单的数据处理,旋转。 聚合任务到高级统计/机器学习方法:聚类/分类/回归等 如果 ...
  • 其他答案都可以。 我只想提出一个额外的选择。 如果它只是一个经常更新的特定Excel文件,我会考虑使用VBA。 例如,在Excel中编写一些VBA代码,用于在电子表格保存(或用户按下按钮)时将更改上载到数据库。 使用预定作业的问题在于,Excel基本上是单个用户应用程序。 如果有人在计划的作业运行或将电子表格移动到其他文件夹时打开电子表格或正在执行某些操作,则作业可能会失败。 通过这种方式,您还可以以接近实时的方式获取数据库中的更新数据,而不是等待作业运行。 这可能需要花费更多的时间和精力来设置,而不是其他 ...
  • 转到“公式”选项卡,然后单击“计算选项”旁边的小三角形。 选择“自动”。 Go to the tab "Formulas" and click on the little triangle next to "Calculation options". There select "Automatic".
  • 我发现D3是最好的解决方案: http : //d3js.org/ I found D3 to be the best solution: http://d3js.org/

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的