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
今天介绍的ScrollView,参考的是NGUI(3.6.8)中的Example项目:Scroll View(Panel)。
先按照Unity插件之NGUI学习(2)创建一个UI Root,然后在UI Root下面创建一个Scroll View,选择菜单NGUI->Create->Scroll View
然后在Inspector窗口做一些参数设置
Movement设置滚动Vertic...
分类:
编程语言 时间:
2014-10-12 16:19:38
阅读次数:
293
一、兼容类库ActionBarSherlock: Action Bar是Android 3.0后才开始支持的,ActionBarSherlock是让Action Bar功能支持2.X后的所有平台,而且他会自动的判断是调用原生Action Bar还是使用扩展ActionBar。在我的小熊词典里有用到这...
分类:
移动开发 时间:
2014-10-12 10:59:47
阅读次数:
232
幾乎每個APP都會有地圖 所以在這裏記錄一下1.在index.html 中1 2 3 4 5 2. CSS1 map {2 display: block;3 width: 100%;4 height: 100%;5 }6 .scroll {7 hei...
分类:
其他好文 时间:
2014-10-11 18:54:45
阅读次数:
198
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
overflow元素规定当内容溢出元素框时发生的事情。visible默认值。内容不会被修剪,会呈现在元素框之外。hidden内容会被修剪,并且其余内容是不可见的。scroll内容会被修剪,但是浏览器会显示滚动条以便查看其余的内容。auto如果内容被修剪,则浏览器会显示滚动条以便查看其余的内容。...
分类:
Web程序 时间:
2014-10-11 17:32:15
阅读次数:
287
假设出现: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
var animateBlock={ isVisiable:function(el,wh,st,delta){ delta=delta||200; //console.log($(el).offset().top,wh,st,delta) return $(el).offset().top500)....
分类:
其他好文 时间:
2014-10-11 14:46:45
阅读次数:
253
详细可看: http://uisource.com/project/auto-scroll-view-pager/ 示例代码可看: https://github.com/Trinea/android-demo/blob/master/src/cn/trinea/android/demo/AutoSc...
分类:
移动开发 时间:
2014-10-11 10:01:25
阅读次数:
307
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