본문 바로가기

Android

Dagger2 (feat. Android Developer, Codelab) via GIPHY https://medium.com/@sangcomz/dagger2%EB%9E%80-f6aed5948023 Dagger 2란? Dagger 2 medium.com 2016년 3월에 이런 글을 썼었습니다. 쓴 이유는 회사에서 Dagger2를 사용하고 있었기 때문에 학습 및 발표를 위해서 작성했었습니다. 한 동안 Dagger2를 사용하지 않고 전 회사에선 Koin을 사용하고, 요즈음엔 어떤 DI 쓰고 있지 않아서 기억이 가물가물해졌습니다. (애초에.... 제대로 이해하지 못했습니다.....) 이번에 Dagger2를 사용할 일이 있어서 다시 학습을 했습니다. 학습을 하면서 제가 저 글에서 알았던 지식이 잘 못 됐다는 것을 깨달았습니다. https://developer.android.com/tr.. 더보기
Tinder 같은 스와이프 가능한 RecyclerView 만들기 (feat.LayoutManager) 1.LayoutManager? A LayoutManager is responsible for measuring and positioning item views within a RecyclerView as well as determining the policy for when to recycle item views that are no longer visible to the user. By changing the LayoutManager a RecyclerView can be used to implement a standard vertically scrolling list, a uniform grid, staggered grids, horizontally scrolling collections and mo.. 더보기
Playing with String and DataBinding in xml 1. Use hard-coded text hard-coded text를 이용할 수 있습니다. Result It is hard-coded. 2. Use string resource strings.xml에 선언된 string을 이용할 수 있습니다. Hello DataBinding! Result Hello DataBinding! 3. Use format string resource with hard-coded text strings.xml에 선언된 format string을 이용할 수 있습니다. %s, Hello DataBinding! Result Seokwon, Hello DataBinding! 4. Use format string resource with string resource 물론 format st.. 더보기