摘要:        
package com.nico; import android.app.Activity; import android.app.DatePickerDialog; //import android.app.TimePickerDialog; import android.app.Dialog; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.w...    阅读全文
posted @ 2012-05-24 16:52
还是你最好
阅读(7214)
评论(0)
推荐(0)
        
            
        
        
摘要:        
有时候为了方便需要一个监听应用在多个buttonButtonbtn1,btn2;public void onCreate(Bundle b) { btn1.setOnClickListener(yourListener); btn2.setOnClickListener(yourListener); } View.OnClickListener yourListener = new View.OnClickListener(){ public void onClick (View v){ if( v == btn1 ){ ...    阅读全文
posted @ 2012-05-24 16:51
还是你最好
阅读(908)
评论(0)
推荐(0)
        
            
        
        
摘要:        
main.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <T    阅读全文
posted @ 2012-05-24 16:49
还是你最好
阅读(32863)
评论(1)
推荐(0)
        
            
        
        
摘要:        
上面是一个TextView,下面有个RadioGroup,布局如下:主布局main.xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_hei    阅读全文
posted @ 2012-05-24 16:46
还是你最好
阅读(15299)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号