1.线性布局:(LinearLayout)(1)其子元素按照线性(水平或垂直)进行布局(2)常用属性:属性说明android:orientation布局中控件的排列方式,属性值为horizontal(水平)或vertical(垂直)android:gravity定义控件中容器的位置android:w...
                            
                            
                                分类:
其他好文   时间:
2015-07-23 19:31:32   
                                阅读次数:
118
                             
                    
                        
                            
                            
                                Intuition: 2D DP. Basic idea: compose square at dp[i][j] from dp[i-1][j-1]. You need 2 facility 2D matrix: accumulated horizontal\vertical number of 1...
                            
                            
                                分类:
其他好文   时间:
2015-07-21 14:37:44   
                                阅读次数:
79
                             
                    
                        
                            
                            
                                A colored stripe is represented by a horizontal row ofnsquare cells, each cell is pained one ofkcolors. Your task is to repaint the minimum number of ...
                            
                            
                                分类:
其他好文   时间:
2015-07-20 23:14:30   
                                阅读次数:
148
                             
                    
                        
                            
                            
                                1、HTML代码 1 2 3 4 test 5 6 7 8 9 10 11 2、CSS代码 1 .flip-horizontal { 2 -moz-transform: scaleX(-1); 3 -webkit-transform: scaleX(-1); 4 -o-trans...
                            
                            
                                分类:
Web程序   时间:
2015-07-16 09:32:20   
                                阅读次数:
10153
                             
                    
                        
                            
                            
                                LinearLayout-线性布局,该布局中的控件按照水平方向排列或者竖直方向排列。通过属性android:orientation=""决定的,可选值:vertical和horizontal。同时有一个比重属性,android:layout_weight="",可以通过填写每个控件的比重,获取控件在...
                            
                            
                                分类:
移动开发   时间:
2015-07-13 23:55:07   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                问题:Unity中的Camera的FOV和Maya中Camera的Angle of View即使设置成相同值,预览时结果会有很大差异原因:Unity Camera的FOV是Vertical FOV的角度Maya Camera的Angle of View是Horizontal FOV的角度解决方法先保...
                            
                            
                                分类:
编程语言   时间:
2015-07-10 02:07:34   
                                阅读次数:
544
                             
                    
                        
                            
                            
                                ubuntu字体设置sudo apt-get install ttf-liberation 字体选择Liberation Sans Bold 9~/.gtkrc-2.0 
style “gtkcompact” { 
GtkTreeView::vertical-separator=1 
GtkTreeView::horizontal-separator=1 
GtkWidget::focus-line...
                            
                            
                                分类:
其他好文   时间:
2015-07-09 11:26:12   
                                阅读次数:
139
                             
                    
                        
                            
                            
                                一、ListView
android-pulltorefresh
一个强大的拉动刷新开源项目,支持各种控件下拉刷新,ListView、ViewPager、WebView、ExpandableListView、GridView、ScrollView、Horizontal ScrollView、Fragment上下左右拉动刷新,比下面johannilsson那个只支持ListView的强大...
                            
                            
                                分类:
移动开发   时间:
2015-07-06 16:11:27   
                                阅读次数:
235
                             
                    
                        
                            
                            
                                swiper的结构为:参数解析1.direction:滑动方向 默认为horizontal(水平),可以设置为vertical(垂直,但在某些浏览器不好使)。2.speed:从滑动开始到滑动结束的时间,注意autoplay指的是间隔多久开始滑动。3.autoplay:如果用户操作后autoplay....
                            
                            
                                分类:
其他好文   时间:
2015-07-03 15:28:14   
                                阅读次数:
1709
                             
                    
                        
                            
                            
                                今天接到一个需求,通过一张图片得到其镜像对称的图片。本来说是后台处理的,但这样除了技术上难实现之外,还带来了资源消耗的问题,相当于每张图都要存储一个副本了。只记得以前用过css的滤镜可以实现这个,但只在IE下有效。后来找到一个兼容多浏览器的样式,大爱。css样式定义:.flip-horizontal...
                            
                            
                                分类:
Web程序   时间:
2015-06-30 18:02:04   
                                阅读次数:
165