Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- DataAccess
- append()
- nan
- matplotlib
- Machine Learning
- dendrogram
- 최솟값
- 덴드로그램
- 분류 결과표
- list
- IN
- wcss
- function
- len()
- del
- numpy
- hierarchical_clustering
- insert()
- Python
- 최댓값
- elbow method
- 반복문
- Dictionary
- string
- count()
- data
- pandas
- DataFrame
- analizer
- sklearn
Archives
- Today
- Total
개발공부
[Android] EditText 입력 이벤트 addTextChangedListener, TextWatcher 본문
addTextChangedListener, TextWatcher
EditText에서 사용자가 텍스트를 입력할 때 입력 시점에 따라 이벤트를 줄때 사용합니다.
사용법
EditText editKeyword = findViewById(R.id.editKeyword);
editKeyword.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
// 입력하기 전에 조치
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
// 입력란에 변화가 있을 때 조치
}
@Override
public void afterTextChanged(Editable editable) {
// 입력이 끝났을 때 조치
}
});
'Android' 카테고리의 다른 글
[Android] Floating Action Button 사용하는 방법 (0) | 2022.07.19 |
---|---|
[Android] ActionBar menu 사용하는 방법 (0) | 2022.07.19 |
[Android] RecyclerView 와 Adapter 를 이용하여 리스트를 화면에 표시하는 방법 (0) | 2022.07.18 |
[Android] SQLite 데이터베이스 활용하는 방법 (0) | 2022.07.18 |
[Android] 데이터 저장, 불러오기 SharedPreferences (0) | 2022.07.13 |