背景: Android3.0(API level 11)开始,Android设备不再需要专门的菜单键。 随着这种变化,Android app应该取消对传统6项菜单的依赖。取而代之的是提供anction bar来提供基本的用户功能。 创建3种基本的菜单Options menu(选...
                            
                            
                                分类:
移动开发   时间:
2014-09-14 10:07:37   
                                阅读次数:
256
                             
                    
                        
                            
                            
                                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,3,2,1,2,1]...
                            
                            
                                分类:
移动开发   时间:
2014-09-13 21:34:25   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                获取当前URL获取当前URL有两种方式,URL::current()或URL::full(),区别是返不返回GET参数如Route::get('/current/url',function(){returnURL::current();});输入/current/url?foo=bar时只显示htt...
                            
                            
                                分类:
其他好文   时间:
2014-09-13 21:21:45   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                Largest Rectangle in HistogramGiven n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of...
                            
                            
                                分类:
其他好文   时间:
2014-09-11 20:52:42   
                                阅读次数:
323
                             
                    
                        
                            
                            
                                on(events,[selector],[data],fn)selector:是祖先元素的子元素,这样祖先元素就可以处理这个选择器所对应的对象的所有事件
$(".comment_bar").on("click","button",function(){
				var aa = $(this).parents(".comment_bar").find(".reply_list");
			...
                            
                            
                                分类:
Web程序   时间:
2014-09-11 17:23:52   
                                阅读次数:
276
                             
                    
                        
                            
                            
                                在Android Programming The Big Nerd Ranch Guide书中,讲解上下文菜单的实现,添加一个删除菜单。在Honeycomb发布前的设备里,上下文的action都是以悬浮的上下文菜单形式呈现。在之后的设备里,推荐用上下文的action bar的方式去呈现上下文的act...
                            
                            
                                分类:
移动开发   时间:
2014-09-11 04:30:01   
                                阅读次数:
405
                             
                    
                        
                            
                            
                                A progress bar which displays progress as passage through a simple maze.
                            
                            
                                分类:
其他好文   时间:
2014-09-10 21:07:21   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                如果只是单纯的隐藏状态栏,那么是在默认情况下,只需要重新实现两个新方法- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; //UIStatusBarStyleDefault =...
                            
                            
                                分类:
移动开发   时间:
2014-09-10 17:17:20   
                                阅读次数:
258
                             
                    
                        
                            
                            
                                #include 
#include 
#include 
#include 
#include 
static struct proc_dir_entry *root, *jiffies_file, *kbuf_file, *symlink,
*symlink;
//struct fb_data_t foo_data,bar_data;
static ssize_...
                            
                            
                                分类:
其他好文   时间:
2014-09-10 12:36:10   
                                阅读次数:
263