首先看一个android项目中各个包的作用 以下看几个经常使用的控件: 1、 TextView 显示文本框控件 2、 EditText 输入文本框 TextView控件经常使用属性: id 控件的id layout_width 控件的宽度 layout_height 控件的高度 text 文本内容  ...
                            
                            
                                分类:
移动开发   时间:
2016-03-29 21:19:12   
                                阅读次数:
181
                             
                    
                        
                            
                            
                                    首先自定义MyText 注意在layout中使用的使用要添加包名 ? android:layout_width="match_parent" android:layout_height="wrap_content"> 首先自定义MyText 注意在layout中使用的使用要添加包名 ? androi ...
                            
                            
                                分类:
其他好文   时间:
2016-03-27 15:35:25   
                                阅读次数:
155
                             
                    
                        
                            
                            
                                    一、找不到网页 AndroidManifest.xml中的android:name="android.permission.INTERNET" />?权限写成大写的了 二、显示空白页 ?android:layout_width="match_parent" android:layout_height ...
                            
                            
                                分类:
Web程序   时间:
2016-03-27 15:33:07   
                                阅读次数:
351
                             
                    
                        
                            
                            
                                TextView设置文字大小及颜色: 1.1)通过xml配置 <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="#FF0000" android: ...
                            
                            
                                分类:
其他好文   时间:
2016-03-24 16:14:15   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                首先来实现异步下载网络图片,布局文件如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientatio...
                            
                            
                                分类:
移动开发   时间:
2016-03-19 13:07:18   
                                阅读次数:
271
                             
                    
                        
                            
                            
                                ---前台界面部分<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/LinearLayout1"android:layout_width="match_parent"android:layout_height="match_parent"android:background="..
                            
                            
                                分类:
移动开发   时间:
2016-03-11 06:41:14   
                                阅读次数:
286
                             
                    
                        
                            
                            
                                还在为布局的时候做不出来一条细细的线而烦恼么? 哈哈,自从知道了写法腰也不酸了,腿也不疼了!一口气写100行!! <View android:layout_height="1px" android:background="#000000" android:layout_width="fill_par
                            
                            
                                分类:
移动开发   时间:
2016-03-08 02:03:46   
                                阅读次数:
210
                             
                    
                        
                            
                            
                                第一步: 首先,在 布局文件中,声明listView控件. 1 <ListView 2 android:id="@+id/lv" 3 android:layout_width="fill_parent" //注意宽度和高度必须为 fill_parent 4 android:layout_height
                            
                            
                                分类:
移动开发   时间:
2016-03-08 00:26:28   
                                阅读次数:
173
                             
                    
                        
                            
                            
                                RelativeLayout直接include另一个layout是会把include中的控件与当前layout中的控件覆盖重叠,经过查资料 其中的include标签一定要加上(因为include中不指定这二个属性其他所有属性都无效) android:layout_height="wrap_conte
                            
                            
                                分类:
其他好文   时间:
2016-03-02 19:54:24   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                为View添加自定义XML属性Android中的各种Widget都提供了很多XML属性,我们可以利用这些XML属性在layout文件中为Widget的属性赋值。如下所示:<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:t...
                            
                            
                                分类:
移动开发   时间:
2016-03-02 01:51:17   
                                阅读次数:
476