一 显示区别:2.3.x及以下版本,需要按菜单键显示菜单,当菜单打开时,第一个可见的部分是图标菜单,最多可容纳6个菜单项。如果你的菜单包括Android的地方超过6项,第六项,其余将被归到”More”菜单下;3.0以上版本,逐渐抛弃了2.3.x及以下版本这种menu这种风格,主推Action Bar...
分类:
移动开发 时间:
2014-10-13 14:33:29
阅读次数:
185
1 如何设置 ActionBar的Tab 的颜色?
// 设置actionBar的颜色
Drawable draw = new ColorDrawable(Color.GREEN);
actionBar.setBackgroundDrawable(draw);
draw = new ColorDrawable(Color.GREEN);
// set Tab color...
分类:
移动开发 时间:
2014-10-13 10:37:51
阅读次数:
265
Dojo Chart之常用统计图,柱状图、饼状图、线状图、堆积图、区域图等。...
分类:
其他好文 时间:
2014-10-12 20:31:28
阅读次数:
871
一、兼容类库ActionBarSherlock: Action Bar是Android 3.0后才开始支持的,ActionBarSherlock是让Action Bar功能支持2.X后的所有平台,而且他会自动的判断是调用原生Action Bar还是使用扩展ActionBar。在我的小熊词典里有用到这...
分类:
移动开发 时间:
2014-10-12 10:59:47
阅读次数:
232
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width o...
分类:
其他好文 时间:
2014-10-11 17:54:45
阅读次数:
147
假设出现:nested push animation can result in corrupted navigation barFinishing up a navigation transition in an unexpected state. Navigation Bar subview t...
分类:
其他好文 时间:
2014-10-11 16:43:35
阅读次数:
170
iReport 官网和文档上关于chart设计以饼图和JDBC源作为例子,但更多的情况下由于报表中的数据需要首先加工处理,因此更多的是从JavaBeans set datasource从获取数据,另外linechart也是使用很多的一种chart工具,本文就记录在iReport中通过JavaBeansset datasource 获取数据,继而生成linechart报表的过程。
1. ...
分类:
其他好文 时间:
2014-10-11 15:31:15
阅读次数:
356
Givennnon-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.Fo...
分类:
移动开发 时间:
2014-10-11 05:30:54
阅读次数:
228
这是一个之前没发现的现象。
同样一段代码:
b=10000;
c=randn(1, b); %产生10000个正态分布的随机数
d=100;
[a,b]=hist(c,d); %平均分成100份
a=a/length(c); %把个数转换成频度
bar(a); ...
分类:
其他好文 时间:
2014-10-10 21:17:44
阅读次数:
230