问题:
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    
        android:layout_width="match_parent"
        androi...
                            
                            
                                分类:
其他好文   时间:
2014-06-19 09:36:53   
                                阅读次数:
199
                             
                         
                    
                        
                            
                            
                                ListView 的高度 必须要设置成一个明确的值 或者match_parent 
不然就会调用多次getView方法
                            
                            
                                分类:
移动开发   时间:
2014-06-09 18:51:50   
                                阅读次数:
253
                             
                         
                    
                        
                            
                            
                                android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal" >
    
        android:layout_width="wrap...
                            
                            
                                分类:
其他好文   时间:
2014-06-08 17:58:54   
                                阅读次数:
633
                             
                         
                    
                        
                            
                            
                                界面效果
应用的权限
 
布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    andr...
                            
                            
                                分类:
移动开发   时间:
2014-06-03 00:45:02   
                                阅读次数:
303
                             
                         
                    
                        
                            
                            
                                布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="...
                            
                            
                                分类:
移动开发   时间:
2014-06-01 04:04:04   
                                阅读次数:
490
                             
                         
                    
                        
                            
                            
                                LinearLayout linearLayoutMain = new 
LinearLayout(this);//自定义一个布局文件 linearLayoutMain.setLayoutParams(new 
LayoutParams( LayoutParams.MATCH_PARENT, ...
                            
                            
                                分类:
移动开发   时间:
2014-05-26 16:22:12   
                                阅读次数:
257
                             
                         
                    
                        
                            
                            
                                注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
  <RadioGroup
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        a...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 00:04:35   
                                阅读次数:
344
                             
                         
                    
                        
                            
                            
                                典型错误案例:
        经常我们会通过addView方法,动态添加一些子布局,比如下面的一段代码.
LinearLayout linParent = (LinearLayout) findViewById(R.id.aty_slider_linParent);View vChild = mInflater.inflate(R.layout.view_loding, null);linP...
                            
                            
                                分类:
移动开发   时间:
2014-05-22 09:41:22   
                                阅读次数:
553
                             
                         
                    
                        
                            
                            
                                官方demo见 
https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 19:19:36   
                                阅读次数:
334
                             
                         
                    
                        
                            
                            
                                三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
                            
                            
                                分类:
移动开发   时间:
2014-05-14 07:02:27   
                                阅读次数:
424