- 博客(7)
- 收藏
- 关注
原创 FragmentTabHost切换Fragment时避免重复加载UI
使用FragmentTabHost时,Fragment之间切换时每次都会调用onCreateView方法,导致每次Fragment的布局都重绘,无法保持Fragment原有状态。 解决办法:在Fragment onCreateView方法中缓存View private View rootView;//缓存Fragment @Override public View
2013-10-11 13:49:13
18295
23
原创 MongoDB CRUD介绍
MongoDB CRUD介绍 MongoDB数据像JSON格式的键值对一样存储在文件中。MongoDB数据文件是BSON文件。BSON:A serialization format used to store documents and make remote procedure calls in MongoDB. “BSON” is a portmanteau of the w
2013-09-23 14:14:42
1340
原创 MongoDB基本命令
mongo shell是MongoDB的一部分,提供了一个完整的JavaScript环境。 连接数据库: mongo默认情况mongo监听27017端口数据库,如果要连接其它端口的数据使用命令mongo --port 端口号 --host
2013-09-23 11:28:41
880
原创 MongoDB介绍,安装
MongoDB介绍:MongoDB是一个开源的基于分布式文件存储的数据库(面向文档),由C++编写。MongoDB是一个介于关系数据库与非关系数据库之间的产物,支持的数据结构松散,类似于JSON,BSON(Binary Serialized Document Format),MongoDB支持强大的查询语言,并且还对数据建立索引。MongoDB特点:*面向集
2013-09-23 10:10:49
974
转载 关于 Java 数组的 12 个最佳方法
1.声明一个数组String[] aArray = new String[5];String[] bArray = {"a","b","c", "d", "e"};String[] cArray = new String[]{"a","b","c","d","e"};2. 输出一个数组int[] intArray = { 1, 2, 3, 4, 5 };St
2013-09-17 09:37:52
701
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人