解决方案写成values-port-hdpi-1824x1200最近做项目中发现问题我写分辨率values-1920x1200,但是平板华为x1 不走这个分辨率,写1800x1000 会进,但是还是不对呀,这么做会影响其他设备的适配的后来发现,得除去虚拟键部分算起,我打印屏幕的分辨率为// 1200...
分类:
移动开发 时间:
2014-10-14 20:38:59
阅读次数:
269
在Android中,用string-array是一种简单的提取XML资源文件数据的方法。例子如下:把相应的数据放到values文件夹的arrays.xml文件里厦门市福州市泉州市漳州市龙岩市 然后在Activity里,直接使用Resources res =getResources();String....
分类:
移动开发 时间:
2014-10-14 16:12:48
阅读次数:
192
安装工具oci8gem install ruby-oci8连接数据库require 'oci8'conn = OCI8.new("用户名", "密码", "数据库IP/SID")insertcursor = conn.exec("insert into table(id,type) values(1...
分类:
数据库 时间:
2014-10-14 15:47:48
阅读次数:
360
解决方案
写成values-port-hdpi-1824x1200
最近做项目中发现问题
我写分辨率values-1920x1200,但是平板华为x1 不走这个分辨率,写1800x1000 会进,但是还是不对呀,这么做会影响其他设备的适配的
后来发现,得除去虚拟键部分算起,我打印屏幕的分辨率为// 1200------1824 华为荣耀x1 7.0
最后,我把value里面的适配写成v...
分类:
移动开发 时间:
2014-10-14 09:57:48
阅读次数:
283
iota:Fills the range[first, last)with sequentially(循环的) increasing values, starting withvalueand repetitively(重复地) evaluating++value.Parameters first....
分类:
编程语言 时间:
2014-10-13 14:34:19
阅读次数:
160
比如我们要给BASE_PASSENGER_STATION的geometry字段创建索引。具体语句如下。 INSERT?INTO?user_sdo_geom_metadata(TABLE_NAME,COLUMN_NAME,DIMINFO,SRID)
???VALUES(‘BASE_PASSENGER_STATION‘,‘GEOMETRY‘,...
分类:
数据库 时间:
2014-10-13 11:52:29
阅读次数:
245
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
编程语言 时间:
2014-10-13 03:11:58
阅读次数:
257
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all ...
分类:
其他好文 时间:
2014-10-12 19:12:18
阅读次数:
158
在网上搜了下,维基百科中给了多种方法。 http://en.wikipedia.org/wiki/Normal_distribution#Generating_values_from_normal_distribution...
分类:
其他好文 时间:
2014-10-12 01:26:17
阅读次数:
474
sqlite3数据库支持事务例如:1 BEGIN DEFERRED TRANSACTION;2 INSERT INTO main.test_transaction (test_unique) VALUES ('test_6');3 INSERT INTO main.test_transaction ...
分类:
数据库 时间:
2014-10-11 19:50:57
阅读次数:
276