第一季

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年8月7日

摘要: 官方参考文档 对LinearLayout.LayoutParams中的android:layout_weight解释如下:Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams.Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose we 阅读全文
posted @ 2013-08-07 11:30 第一季 阅读(903) 评论(0) 推荐(0) 编辑

2013年7月30日

摘要: 比如文件列表, 显示不下,需要出滚动条:外面加一个scrollview直接上代码: 既然可以水平滚动, 那也可以垂直滚动。外面加HorizontalScrollView 阅读全文
posted @ 2013-07-30 15:56 第一季 阅读(1104) 评论(0) 推荐(0) 编辑

2013年7月26日

摘要: fill_parent -1 The view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.match_parent -1 The view should be as big as its parent (minus padding). Introduced in API Level 8. wrap_content -2 The view should be only bi 阅读全文
posted @ 2013-07-26 11:30 第一季 阅读(367) 评论(0) 推荐(0) 编辑

2013年7月25日

摘要: 着了一个例子项目,总是报标题说的错误。解决方法如下:红圈的地方,勾掉。 貌似如果你这个项目是作为一个被引用的project的话, 要勾上这个。单独作为一个app的话,不能勾选这个。--不懂,瞎写。 阅读全文
posted @ 2013-07-25 15:54 第一季 阅读(333) 评论(0) 推荐(0) 编辑

摘要: MarkDown介绍===============## 1.标题分级介绍#一级标题###三级标题######六级标题一级标题==============二级标题---------------------## 2.区块元素>这是一个段落,下面来讲一下皇帝的新装的故事。>>古,有帝,好华服。然... ... >>>第二段,再次缩进。>>哈哈>第一段>>缩进一段>>第二段##3.列表###无序列表- Item1- Item2- Item3###有序列表3. Item19. Item25. Item3---* Lorem i 阅读全文
posted @ 2013-07-25 10:52 第一季 阅读(231) 评论(0) 推荐(0) 编辑

2013年5月31日

摘要: Queries in MongoDB: db.collection.find() db.collection.findOne() db.collection.find( <query>, <projection> ) db.collection.findOne( <query>, <projection> ) Operators: $or, $lt, $gt, $in, dot notation, $elemMatch Query Document: db.collection.find( {} ) db.collection.find() db 阅读全文
posted @ 2013-05-31 09:55 第一季 阅读(305) 评论(0) 推荐(0) 编辑

2013年5月10日

摘要: 在查看underscore.js的源码时候,看到这些function,不理解其含义 。参考资料:https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Arrayhttps://developer.mozilla.org/zh-CN/docs/JavaScript/New_in_JavaScript/1.6https://developer.mozilla.org/zh-CN/docs/JavaScript/New_in_JavaScript/1.8=============In JavaScri 阅读全文
posted @ 2013-05-10 13:20 第一季 阅读(159) 评论(0) 推荐(0) 编辑

2013年4月25日

摘要: javascript中apply()和call()方法的区别:function.call(this,arg1,arg2,arg3)==function.apply(this,arguments)==this.foo(arg1,arg2,arg3)call, apply都属于Function.prototype的一个方法,它是JavaScript引擎内在实现的,因为属于Function.prototype,所以每个Function对象实例,也就是每个方法都有call, apply属性.既然作为方法的属性,那它们的使用就当然是针对方法的了.这两个方法是容易混淆的,因为它们的作用一样,只是使用方式不 阅读全文
posted @ 2013-04-25 15:32 第一季 阅读(123) 评论(0) 推荐(0) 编辑

2013年3月18日

摘要: Install MongoDB in win7: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/(1)Download MongoDB zip , and unzip it.(2)Config the mongoDB, config log and data dir. a. create a file "mongod.cfg" in the folder. b. add two items, more options please refer to the MongoDB manual: 阅读全文
posted @ 2013-03-18 18:43 第一季 阅读(163) 评论(0) 推荐(0) 编辑

2013年3月17日

摘要: Gwt(Google Web Toolkit)是 google推出并维护的一个产品,初衷是为了用java来“写”网页,然而随着web的发展, gwt并没有特别的流行,尤其在国内,更是小众。页面的脚本语言是相当灵活的,于是js + div +css 以及html5的丰富的浏览器对象绝对比这个好用。对于页面调使, chrome浏览器自带的工具 或者 firefox的firebug 插件, 都是功能强大的debug工具。于是个人不觉得使用gwt是一件美妙的事情,然而由于业务需要,需要了解一下。1. GWT 主页: https://developers.google.com/web-toolkit/ 阅读全文
posted @ 2013-03-17 15:58 第一季 阅读(446) 评论(0) 推荐(0) 编辑