일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- viewholder
- recyclerview
- 안드로이드
- adapter
- 스와이프
- Error:Execution failed for task ':app:mergeDebugResources'
- 테마 아이콘
- 생명주기
- 코딜리티
- 리사이클러뷰
- espresso
- 고차함수
- searchview
- 재사용
- Fragment에서 Activity의 함수 사용하기
- fragment
- 안드로이드스튜디오
- 안드로이드개발레벨업교과서
- binding adapter
- 뷰변경 감지
- ui test
- Android
- 안드로이드13
- IntentTestRule
- high order function
- 코틀린
- 구분선
- LayoutManger
- ActivityTestRule
- Fragment 수동 추가
Archives
- Today
- Total
목록개발/Kotlin (18)
룬아님의 취중코딩
Kotlin let을 null check에 사용하지 마라
https://medium.com/@elye.project/kotlin-dont-just-use-let-7e91f544e27f Kotlin: Don’t just use LET for null check With the introduction of null safety in Kotlin, many uses let{...} to perform the null check. But let is{…} not appropriate for some cases… medium.com
개발/Kotlin
2019. 9. 22. 18:10
Kotlin에서 let을 여러번 쓰고 싶을 때
kotlin으로 개발을 할때에 something?.let{} 이런 류의 코드를 많이 사용하게 된다. 그런데 변수 하나만 null 체크를 하는 것이 아니라 2개 이상 체크하고 싶으면 어떻게 해야할까? 하지만 Kotlin에서 직접적으로 지원하는 extension이 없기 때문에 https://stackoverflow.com/a/55736101 Multiple variable let in Kotlin Is there any way to chain multiple lets for multiple nullable variables in kotlin? fun example(first: String?, second: String?) { first?.let { second?.let { // Do something... ..
개발/Kotlin
2019. 9. 10. 15:42