일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- TEST
- activity
- 백준
- android
- architecture
- relay
- ProGuard
- MiTweet
- pandas
- Python
- GitHub
- 코드포스
- Coroutine
- Coroutines
- AWS
- Codeforces
- 코루틴
- Gradle
- boj
- livedata
- 암호학
- 프로그래머스
- Rxjava
- Hilt
- MyVoca
- 쿠링
- androidStudio
- Compose
- textfield
- Kotlin
- Today
- Total
목록Primary/Android (80)
이동식 저장소
아이디만으로 쉽게 뷰에 접근할 수 있었던 ``Kotlin Android Extensions``는 ``RecyclerView``에서 사용할 때 매우 비효율적이며, 그 밖에도 코드 작성 시 여러 가지 문제점이 있어 최근에는 ``ViewBinding`` 사용을 권장하고 있다. 참고: Android Studio 4.1에서 제거된 Kotlin Android Extensions을 알아보자. (thdev.tech) 그런데 ``ViewBinding``을 사용하면 레이아웃이 약간 틀어지는 문제가 있다. 대표적으로 ``layout_width`` 혹은 ``layout_height``가 ``wrap_content``로 고정되는 문제. 분명히 ``match_parent``로 설정했음에도 불구하고 Layout Inspector로..
레이아웃 XML 파일 Java 파일 override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityAddVocaBinding.inflate(layoutInflater) setContentView(binding.root) // ... } 신기술 ``ViewBinding``을 사용하다 오류를 하나 찾아냈다. XML 파일에서 설정한 ``layout_margin``이 가로, 세로 모두 적용되지 않는 문제이다. 놀랍게도 구글링해서 답을 찾을 수 없었다. ``Fragment``에서 오류난 사람은 있었지만 ``Activity``에서 오류가 난 사람은 없었던 듯 하다. 해결책은 그냥 ``lay..
머티리얼 디자인 아이콘 Resources Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io 깔끔하고.. thinking-face.tistory.com 예전에 머티리얼 아이콘과 관련된 글을 쓴 적이 있다. Android Studio에서는 아이콘을 일일이 다운로드하지 않아도 쉽게 사용할 수 있다. res/drawable 폴더에 오른쪽 버튼을 누르고 New→Vector Asset을 클릭한다. 그러면 다음과 같은 창이 뜬다. Clip Art 부분의 이..
Android Studio 개발을 하다가 뜬금없이 에러가 뜬다. 아니 내 앱은 Json은 쓰지도 않는데?? 그래서 검색을 해 봤다. Gradle Build failing with java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $ I'm building an app which fetches data from Firebase adds it into an array adapter and displays it in a list view. When I try to build the app, it fails with: Error:Execution failed for task '... stackov..
Resources Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io 깔끔하고 보기 좋은 머티리얼 디자인 아이콘이다. "Free for everyone to use"라고 적혀 있으니 개인 개발 용도로는 자유롭게 사용해도 될 듯 하다. 발표자료 만들 때 쓸 수도 있을 듯.