當前位置:編程學習大全網 - 編程軟體 - android編程 相關自定義對話框 sqlite listview

android編程 相關自定義對話框 sqlite listview

在ID的edittext實現TextWatcher監聽就可以了。

editText.addTextChangedListener(watcher);

自定義watcher監聽器:

final TextWatcher watcher = new TextWatcher() {

@Override

public void onTextChanged(CharSequence s, int start, int before, int count) {

}

@Override

public void beforeTextChanged(CharSequence s, int start, int count,

int after) {

}

@Override

public void afterTextChanged(Editable s) {

//在這裏進行查詢ID下面的name和age操作,並把查詢結果付給右邊的對話框

}

}

};

  • 上一篇:如何畫壹只跳舞的小貓
  • 下一篇:手機上的安卓操作系統是用什麽語言編程的?
  • copyright 2024編程學習大全網