반응형
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 |
Tags
- django
- Excel
- dataframe
- GIT
- hive
- gas
- Google Excel
- 파이썬
- matplotlib
- numpy
- SQL
- Presto
- array
- Redshift
- Tkinter
- Java
- c#
- string
- google apps script
- Kotlin
- PySpark
- Github
- Apache
- PostgreSQL
- PANDAS
- math
- Google Spreadsheet
- Python
- list
Archives
- Today
- Total
목록viewBinding (1)
달나라 노트
보통 view를 찾기 위해선 findViewById(id)를 이용합니다. 그러나 코딩을 하다보면 위 방법이 번거로울 수 있습니다. 그럴때는 원하는 view를 좀 더 쉽게 찾게 해주는 view binding을 사용할 수 있죠. 이를 위해선 build.gradle 파일을 수정해야합니다. (build.gradle 파일은 2개가 존재할겁니다. 하나는 project용, 하나는 module용. 이번에는 module용 build.gradle 파일을 수정해야합니다.) plugins { ... } android { ... buildFeatures { viewBinding = true } ... } dependencies { ... } build.gradle 파일의 android 부분에 위와같이 buildFeatures를..
Android
2021. 3. 23. 00:07