在xml中知道style属性 <TextView style="@style/DavidStyleText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/myTe
                            
                            
                                分类:
其他好文   时间:
2016-02-10 00:29:32   
                                阅读次数:
222
                             
                    
                        
                            
                            
                                方法1: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
                            
                            
                                分类:
移动开发   时间:
2016-02-03 18:14:10   
                                阅读次数:
1176
                             
                    
                        
                            
                            
                                要实现EditText的自动换行需要实现如下设置: <EditText android:id="@+id/function_lifingcost_edit_txtRemark" android:layout_width="fill_parent" android:layout_height="wra
                            
                            
                                分类:
移动开发   时间:
2016-02-02 15:01:37   
                                阅读次数:
186
                             
                    
                        
                            
                            
                                <TextView android:id="@+id/textview" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/hello_world" /> pr
                            
                            
                                分类:
其他好文   时间:
2016-02-02 14:40:44   
                                阅读次数:
134
                             
                    
                        
                            
                            
                                <ImageView android:id="@+id/img" android:src="@drawable/logo" android:scaleType="centerInside" android:layout_width="60dip" android:layout_height="60d
                            
                            
                                分类:
移动开发   时间:
2016-01-29 12:22:14   
                                阅读次数:
210
                             
                    
                        
                            
                            
                                一个下拉列表的实现,这里记录下,下拉列表是如何实现的:(1)布局:<Spinner
android:id="@+id/sp_xinjian"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>(2)Item:<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmln..
                            
                            
                                分类:
其他好文   时间:
2016-01-13 20:13:47   
                                阅读次数:
183
                             
                    
                        
                            
                            
                                问题:一个listView显示不满全屏时,最后一个item会自动占满剩下的屏幕高度,而我们需要看到的是每个item布局所要占的高度一样。解决办法:主要是把ListView布局里面的高度设置为:android:layout_height="fill_parent";listView显示的每个item就占同样的高度了。
                            
                            
                                分类:
移动开发   时间:
2016-01-13 20:07:53   
                                阅读次数:
321
                             
                    
                        
                            
                            
                                本文是看了鸿洋视频后的小结:layout_height的作用:首先按照声明的尺寸分配,剩余的空间再按照layout_weight进行分配一平均分配: 
代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    androi...
                            
                            
                                分类:
其他好文   时间:
2016-01-09 11:05:13   
                                阅读次数:
169
                             
                    
                        
                            
                            
                                对手势感到好奇从网上学习了一部分。保存:在xml中添加手势绘制即类似画板可以绘制手势的:<android.gesture.GestureOverlayView
android:id="@+id/gesture"
android:layout_width="match_parent"
android:layout_height="match_parent"/>设置手势的一些属性:mGov=(Gest..
                            
                            
                                分类:
移动开发   时间:
2015-12-14 12:36:21   
                                阅读次数:
242
                             
                    
                        
                            
                            
                                观看幕课网的视频的收获“layout_”下划线开头的属性都是交给父容器去处理的属性,如: android:layout_width="match_parent" android:layout_height="match_parent"没有layout_”下划线开头的属性都...
                            
                            
                                分类:
其他好文   时间:
2015-12-05 15:55:25   
                                阅读次数:
105