Material Theme提供了一下功能:1、系统widgets可以设置调色板2、系统widgets的触摸反馈3、Activity过渡动画 你可以根据你品牌的色彩来定义Material Theme,可以使用Material Theme的色彩为status bar、action bar着色。参考下....
分类:
其他好文 时间:
2014-12-09 21:08:15
阅读次数:
187
好了,用上篇介绍的工具,跟踪了下startActivity在system_server中的流程,如下:
The picture below is the flow chart for how the source Activity start a target activity
Major includes four steps:
(1) Preparation, flow chart in...
分类:
移动开发 时间:
2014-12-09 10:36:36
阅读次数:
194
1.<scriptsrc="
2.<scripttype="text/javascript">
//路径配置
require.config({
paths:{
echarts:‘http://echarts.baidu.com/build/dist‘
}
});
//使用
require(//通过动态加载使用echarts
[
‘echarts‘,
‘echarts/chart/bar‘,//使用柱状图就加载bar模块,按需加载
‘..
分类:
其他好文 时间:
2014-12-08 15:49:13
阅读次数:
221
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,...
分类:
移动开发 时间:
2014-12-08 15:32:44
阅读次数:
233
object元素object这个元素,现在前端很少用到,但是像flash,svg等奇葩元素,必须嵌套在object对象元素中。现代浏览器用video,canvas代替这些元素。之前做过图表和地图的一些应用,像highchart,e-chart,这些图表插件,基本上是使用svg元素(嵌套在object...
分类:
其他好文 时间:
2014-12-08 15:17:22
阅读次数:
289
//设置导航条的样式 self.navigationController.navigationBar.barStyle=UIBarStyleBlackTranslucent; //默认是白色 Bar字体颜色黑色,如果样式设置黑色,对应的字体就是白色。 //定义导航条的时候使用 self.navi.....
分类:
移动开发 时间:
2014-12-07 21:39:35
阅读次数:
192
CURD插入:Db.foo.insert({“bar”:“baz”});批量插入能传递一个由文档构成的数组给DB.目前MONGODB消息长度是16M,所以批量插入也是有限制的.删除:Db.user.remove(...);清除整个集合:db.drop_collection(“bar”);更新:Upd...
分类:
数据库 时间:
2014-12-07 20:18:15
阅读次数:
346
1.数据定义语言:hive> CREATE TABLE pokes (foo INT, bar STRING);hive> CREATE TABLE invites (foo INT, bar STRING) PARTITIONED BY (ds STRING);--分区是虚拟的,用于加载特别的数据...
分类:
其他好文 时间:
2014-12-07 17:44:34
阅读次数:
150
Largest Rectangle in HistogramGivennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of l...
分类:
其他好文 时间:
2014-12-06 16:39:46
阅读次数:
139
模块路径解析规则:nodejs支持三种解析方式:/或C:开头的绝对路径;./开头的绝对路径;按照一定规则解析路径,直到找到模块位置。
内置模块:如果传递给require的是NodeJS内置模块名称,则不解析,直接返回内部模块导出对象。
node_modules目录:node_modules目录用于存放模块。如某个模块的绝对路径是/home/user/hello.js,在该模块中使用require('foo/bar')方式加载模块时,则寻找顺序如下:
/home/user/node_modules/foo/...