일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- frontend
- TypeScript
- LeetCode
- 그레이들
- 동적 계획법
- db
- 안드로이드
- network
- Redux
- 프로그래머스
- CS
- Database
- 리트코드
- DFS
- Python
- VIM
- react
- DP
- 다이나믹 프로그래밍
- 알고리즘
- 백준
- java
- Javascript
- BFS
- vscode
- Algorithm
- Graph
- Data Structure
- 자바
- git
Archives
- Today
- Total
목록Drawable (1)
늘 겸손하게

안녕하세요 besforyou 입니다 이번 글에서는 Drawable 변수를 생성하고, Drawable resource를 변수에 연결하는 법에 대하여 소개하겠습니다 1 Drawable drawable = ContextCompat.getDrawable(context, R.drawable.리소스이름); cs 위 코드로 drawable 객체와 drawable resource를 연결할 수 있습니다. 이제 drawable 객체를 함수의 인자로 주는 것도 가능합니다.
Programming/Android
2021. 8. 20. 12:55