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
- data
- insert()
- DataFrame
- DataAccess
- Machine Learning
- 덴드로그램
- matplotlib
- hierarchical_clustering
- IN
- 최댓값
- string
- 분류 결과표
- numpy
- 최솟값
- dendrogram
- nan
- Python
- elbow method
- wcss
- 반복문
- Dictionary
- append()
- function
- count()
- sklearn
- list
- del
- len()
- pandas
- analizer
Archives
- Today
- Total
개발공부
[Android Studio] TextView의 setText 함수 특징 (문자열만 가능) 본문
TextView를 받아와서
setText() 함수를 사용할 때 문자열이 아닌 다른 타입을 넣으면은 앱이 꺼진다.
이럴때는 형변환을 시켜줘야 하는데, 가장 쉬운 방법은 "" + 를 추가해주는 것이다.
int num = 0;
TextView.setText(""+ num);
'Android' 카테고리의 다른 글
| [Android] 네트워크 통신을 위한 Volley 예제, 타임아웃 설정, JSON 데이터 파싱 (0) | 2022.07.12 |
|---|---|
| [Android] 액티비티 라이프 사이클 (LifeCycle) (0) | 2022.07.12 |
| [Android Studio] EditText 속성들 (0) | 2022.07.08 |
| [Android Studio] TextView / Button 의 속성들 (0) | 2022.07.08 |
| [Android Studio] 오픈소스 라이브러리를 안드로이드 스튜디오에 적용하는 법 (0) | 2022.07.08 |