Label

Thứ Tư, 6 tháng 6, 2012

Two ways of addTextChangedListener

2 cách này khác nhau ntn?
 
     edtInputA.addTextChangedListener(new TextWatcher() {
   
   @Override
   public void onTextChanged(CharSequence s, int start, int before, int count) {
    // TODO Auto-generated method stub
    
   }
   
   @Override
   public void beforeTextChanged(CharSequence s, int start, int count,
     int after) {
    // TODO Auto-generated method stub
    
   }
   
   @Override
   public void afterTextChanged(Editable s) {
    // TODO Auto-generated method stub
    
   }
  });
Và:
  editText.addTextChangedListener(this);


07/06/2012:
 Service, Activity, Broadcast receiver chạy chung một thread hay khác nhau, mỗi khi tạo 1 obj là tạo 1 thread ah, làm sao để biết(thread id - DDMS)?

Không có nhận xét nào:

Đăng nhận xét