Material Theme提供了一下功能:1、系统widgets可以设置调色板2、系统widgets的触摸反馈3、Activity过渡动画 你可以根据你品牌的色彩来定义Material Theme,可以使用Material Theme的色彩为status bar、action bar着色。参考下....
分类:
其他好文 时间:
2014-12-09 21:08:15
阅读次数:
187
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
//设置导航条的样式 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/...
1、设置Info.plist中的View controller-based status bar appearance为YES2、然后在AppDelegate.swift中的func application(application:UIApplication!, didFinishLaunching...
分类:
移动开发 时间:
2014-12-05 20:56:18
阅读次数:
134
Mysql查找字符串函数INSTR(str,substr)返回字符串str中子字符串的第一个出现位置。这和LOCATE()的双参数形式相同,除非参数的顺序被颠倒。mysql>SELECTINSTR(‘foobarbar‘,‘bar‘);->4mysql>SELECTINSTR(‘xbar‘,‘foobar‘);->0这个函数支持多字节字元,并且只有当至少..
分类:
数据库 时间:
2014-12-04 15:49:43
阅读次数:
180