要弹出PopupWindow窗口的布局<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFBBFFBB"
android:..
                            
                            
                         
                    
                        
                            
                            
                                <LinearLayout android:id="@+id/recLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" androi
                            
                            
                                分类:
移动开发   时间:
2016-02-28 16:33:24   
                                阅读次数:
377
                             
                    
                        
                            
                            
                                昨天发现了一个RadioButton 的bug,出现bug的代码如下: 1 <RadioGroup 2 android:layout_width="wrap_content" 3 android:layout_height="wrap_content" 4 android:orientation="
                            
                            
                                分类:
其他好文   时间:
2016-02-28 15:06:12   
                                阅读次数:
172
                             
                    
                        
                            
                            
                                1、xml对ImageView的src要设置成selector <ImageView android:id="@+id/like_icon" android:layout_width="@dimen/will_like_icon_width" android:layout_height="@dime
                            
                            
                                分类:
其他好文   时间:
2016-02-25 22:58:56   
                                阅读次数:
292
                             
                    
                        
                            
                            
                                目标:改变软键盘的外观使enter显示为“DONE”或“完成”,监听点击事件。 实现: 1.在xml文件中定义一个EditText <EditText android:layout_width="match_parent" android:layout_height="40dp" android:i
                            
                            
                                分类:
其他好文   时间:
2016-02-23 13:01:32   
                                阅读次数:
123
                             
                    
                        
                            
                            
                                一、简介 二、代码1.xml(1)activity_main.xml 1 <ListView 2 android:id="@id/android:list" 3 android:layout_width="wrap_content" 4 android:layout_height="wrap_con
                            
                            
                                分类:
移动开发   时间:
2016-02-19 18:39:49   
                                阅读次数:
260
                             
                    
                        
                            
                            
                                <android.support.v7.widget.Toolbar android:id="@+id/toolbar_top" android:layout_height="wrap_content" android:layout_width="match_parent" android:minH
                            
                            
                                分类:
移动开发   时间:
2016-02-18 21:36:30   
                                阅读次数:
460
                             
                    
                        
                            
                            
                                通常情况下我们想实现文字的走马灯效果需要在xml文件中这样设置
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:singleLine="true"
        android:ellipsize="mar...
                            
                            
                                分类:
移动开发   时间:
2016-02-15 21:26:04   
                                阅读次数:
304
                             
                    
                        
                            
                            
                                先上图: 布局: 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 -<LinearLayout android:orientation="vertical" android:layout_height="match_parent" android:layou
                            
                            
                                分类:
其他好文   时间:
2016-02-15 09:19:47   
                                阅读次数:
589
                             
                    
                        
                            
                            
                                学了很多的ui的知识,这里就来实现个聊天的界面,首先来实现个layout的xml,代码如下:
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_p...
                            
                            
                                分类:
移动开发   时间:
2016-02-11 22:42:28   
                                阅读次数:
477