使用Phonegap + Eclipse在Android上启动屏幕(Splash screen on Android using Phonegap + Eclipse)
我正在通过Phonegap编写一个Android应用程序,我正在安装Splashscreen。
我设法使用这个问题安装了一个风景防溅屏幕,但正如我所料,它不会将其识别为风景或纵向防溅屏幕,因此它只显示图像,无论设备的方向如何。 如何判断设备处于横向时应显示宽图像,设备处于纵向模式时应显示高图像?
我在用着:
- Eclipse
- Phonegap 1.5.0编辑:问题已更新! 见下文。 感谢ghostCoder,我向前迈了一步,但它仍然无效。
我是否必须在以下代码中添加一些内容来绘制肖像图像? (无论设备的方向如何,它仍然显示景观)
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index.html"); } }
这就是我的文件夹现在的样子:
I'm coding an Android app through Phonegap and I'm at the point of installing the Splashscreen.
I managed to install a landscape splashscreen using this question, but as I expected it doesn't recognize it as a landscape or portrait splashscreen, so it just displays the image, no matter the orientation of the device. How do I tell it should show the wide image when the device is in landscape and the high image when the device is in portrait mode?
I'm using:
- Eclipse
- Phonegap 1.5.0Edit: Question updated! See text below. Thanks to ghostCoder I got one step closer, but it still doesn't work.
Do I have to add something to the following code to draw the portrait images? (it still displays the landscape, no matter the orientation of the device)
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index.html"); } }
This is how my folders look now:
原文:https://stackoverflow.com/questions/9944851
最满意答案
使用:
SELECT t1.Notes, t2.Name FROM Table1 t1 JOIN Table2 t2 ON t1.Notes LIKE CONCAT('%', t2.Name ,'%')
Use:
SELECT t1.Notes, t2.Name FROM Table1 t1 JOIN Table2 t2 ON t1.Notes LIKE CONCAT('%', t2.Name ,'%')
相关问答
更多-
有什么数据库专业书籍介绍?[2022-05-19]
mysql -
UPDATE `mySQL` SET `reportstatus`='Pending' WHERE `reportstatus` IS NULL OR `reportstatus`='' UPDATE `mySQL` SET `reportstatus`='Pending' WHERE `reportstatus` IS NULL OR `reportstatus`=''
-
MySQL在插入的另一列中使用“自动编号字段值”(MySQL use “Auto Number Field Value” in another column on insert)[2021-09-03]
如果我做对了,你需要根据刚刚获得的自动递增标识符计算一列的值。 这似乎不可能直接进行,特别是如果您希望之后更改该值(否则计算列可能会执行此操作)。 这里有几个答案: 使用触发器是一种选择,但我不建议这个简单的情况 要么 创建一个Transaction ,执行插入,然后使用生成的自动递增数字进行更新 If I got it right, you need to have the value of one column to be computed based on the just obtained auto ... -
使用: SELECT t1.Notes, t2.Name FROM Table1 t1 JOIN Table2 t2 ON t1.Notes LIKE CONCAT('%', t2.Name ,'%') Use: SELECT t1.Notes, t2.Name FROM Table1 t1 JOIN Table2 t2 ON t1.Notes LIKE CONCAT('%', t2.Name ,'%')
-
如何在PHP中获取mysql列/字段值而不指定每个字段?(How to get the mysql column/field value in PHP without specifying each field?)[2022-08-21]
我使用了这个函数,它将SQL中的所有结果返回到一个数组中。如何使用包含多个值的字段完成mysql提琴?(how to complete a mysql fiddle with a field that contains multiple values?)[2022-05-18]
要存储分号分隔值列表,必须将最后一个值的字段类型更改为支持字符串存储的类型。 例如,你可以使用varchar , char或text 。 查看更新的小提琴可能的解决方案。 无论如何,我并没有太多关于你的用例,但通常存储这样的列表是一个坏数据模型的标志。 To store a list of semicolon separated values you have to change the field type of your last value to a type which supports strin ...我想你应该在你的查询中应用一些变化来获得像下面这样的正确输出 - SELECT COUNT(streams.id) FROM streams WHERE JSON_CONTAINS(`json`, '{"streams.server" : "1"}') AS streams_total I found solution: ( SELECT COUNT(streams.id) FROM streams WHERE JSON_SEARCH(streams.server, 'all ...这有点粗糙,但会在紧要关头工作。 首先正确订购你的桌子 ALTER TABLE tablename ORDER BY rank 然后放下柱子 ALTER TABLE tablename DROP rank 然后再次添加,自动增量 ALTER TABLE tablename ADD COLUMN rank INT NOT NULL AUTO_INCREMENT FIRST 自动增量将按顺序对它们进行编号,而且您不必遍历每一行。 Here is the solution I came up with for t ...SELECT SUM(CASE WHEN FLAG = 'Y' THEN LAST_AMOUNT ELSE AMOUNT END) AS TOTAL FROM tb_stock SELECT SUM(CASE WHEN FLAG = 'Y' THEN LAST_AMOUNT ELSE AMOUNT END) AS TOTAL FROM tb_stock尝试这个: UPDATE cart table SET paid = $total, status = If($total >= own, 1, 2) Where ID = 1; Try this: UPDATE cart table SET paid = $total, status = If($total >= own, 1, 2) Where ID = 1;相关文章
更多- phonegap分享到微信插件(安卓版)
- phonegap与微信开放平台接口整合
- phonegap分享到微信插件(iOS版)
- 我曲折的Android Eclipse开发环境搭建之路
- 关于eclipse的问题
- 关于eclipse的设置问题
- Android 模仿微信启动动画
- Hadoop与Eclipse
- 疯狂Android讲义
- 在Eclipse中查看SDK源代码的方法
最新问答
更多- h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
- 创建一个功能(Create a function)
- 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
- PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
- Qt冻结循环的原因?(Qt freezing cause of the loop?)
- TableView重复youtube-api结果(TableView Repeating youtube-api result)
- 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
- SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
- 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
- 以编程方式创建UITableView(Creating a UITableView Programmatically)
- 如何打破按钮上的生命周期循环(How to break do-while loop on button)
- C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
- 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
- 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
- Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
- 设置kotlin扩展名(Setting a kotlin extension)
- 如何并排放置两个元件?(How to position two elements side by side?)
- 如何在vim中启用python3?(How to enable python3 in vim?)
- 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
- 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
- Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
- dedecms如何安装?
- 在哪儿学计算机最好?
- 学php哪个的书 最好,本人菜鸟
- 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
- 如何覆盖错误堆栈getter(How to override Error stack getter)
- 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
- USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
- 电脑高中毕业学习去哪里培训
- 正则表达式验证SMTP响应(Regex to validate SMTP Responses)