๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

studies/Mobile Application13

Android ์•ฑ ์ข…๋ฃŒ ์—๋Ÿฌ ํ•ด๊ฒฐ java.lang.ExceptionInInitializerError ๊ตฌ๊ธ€ ํ”Œ๋ ˆ์ด์Šคํ† ์–ด์— ์—…๋กœ๋“œํ•œ ์•ฑ์ด ๋‚ด ํฐ์ด ์•„๋‹Œ ๋‹ค๋ฅธ ๊ธฐ๊ธฐ์—์„œ ์•ฑ ์‹คํ–‰ ์ฆ‰์‹œ ํฌ๋ž˜์‹œ ์—๋Ÿฌ๊ฐ€ ๋‚œ๋‹ค. Play console์—์„œ ํ™•์ธํ•œ ์—๋Ÿฌ๋‹ค. java.lang.ExceptionInInitializerError: at okhttp3.internal.platform.Platform.get (Platform.java:85) at okhttp3.OkHttpClient.newSslSocketFactory (OkHttpClient.java:263) at okhttp3.OkHttpClient. (OkHttpClient.java:229) at okhttp3.OkHttpClient. (OkHttpClient.java:202) at retrofit2.Retrofit$Builder.build (Retrofit.java:61.. 2021. 9. 4.
[Android/Kotlin] FloatingButton ๋ฒ„ํŠผ์— Vector(svg) ์•„์ด์ฝ˜ ๊ฐ€์šด๋ฐ ๋ฐฐ์น˜ํ•˜๊ธฐ android:layout_width="30dp" android:layout_height="30dp" app:srcCompat="@drawable/ic_send" app:fabSize="mini" app:fabCustomSize="30dp" 2021. 6. 23.
[Android/Kotlin] CardView ๋ฐฐ๊ฒฝ ์ƒ‰๊ณผ radius ๋™์‹œ์— ์ง€์ •ํ•˜๊ธฐ card?.radius = 40F card?.setCardBackgroundColor(Color.parseColor(room.color)) 2021. 6. 23.
[Kotlin/Android] Fragment Activity์—์„œ Image Cropper์™€ CircleImageView ์‚ฌ์šฉํ•˜๊ธฐ ์•ˆ๋“œ๋กœ์ด๋“œ์—์„œ ์ด๋ฏธ์ง€๋ฅผ ์ •์‚ฌ๊ฐํ˜•์œผ๋กœ ์ž๋ฅด๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋„๊ตฌ๋ฅผ ๋ถˆ๋Ÿฌ์™€ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ• ๊ทธ๋ฆฌ๊ณ  ์›ํ˜• ์ด๋ฏธ์ง€ XML์ปดํผ๋„ŒํŠธ์— ๋ถˆ๋Ÿฌ์˜จ ์ด๋ฏธ์ง€๋ฅผ ์ ์šฉํ•˜๋Š” ๋ฒ•์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. How to use ImageCropper and CircleImageView in android with kotlin. 0. ์‚ฌ์šฉ๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์†Œ๊ฐœ https://github.com/ArthurHub/Android-Image-Cropper ArthurHub/Android-Image-Cropper Image Cropping Library for Android, optimized for Camera / Gallery. - ArthurHub/Android-Image-Cropper github.com https://github.com/hdodenh.. 2021. 6. 16.
[Android Studio] Gradle No cached version available for offline mode ํ•ด๊ฒฐ Gradle์ฐฝ์—์„œ Toggle Offline mode ํ•ด์ œ ํ›„ gradle(app) rebuild 2021. 5. 30.
[Android/Kotlin] Horizontal ๊ฐ€๋กœ ์Šฌ๋ผ์ด๋“œ Recycler View ์‚ฌ์šฉํ•˜๊ธฐ (์™„์ „ ์‰ฌ์›€) ์ž‘๋…„ ๊ฐ€์„ ์ดํ›„๋กœ ์•ˆ๋“œ๋กœ์ด๋“œ๋ฅผ ๋งŒ์ง„ ์ ์ด ์—†๋Š”๋ฐ, ์š”์ฆ˜ ๋‹ค์‹œ ๋ถ™์žก๊ณ  ์žˆ๋‹ค. ์˜ค๋žœ๋งŒ์— (๋ฐ˜๋…„์ „์ด์ง€๋งŒ ๋‚˜์—๊ฒ ํฐ ์‹œ๊ฐ„) ๋งŒ์ง€๋‹ˆ ๋‚ ์•„๊ฐ„ ๊ธฐ์–ต๋“ค์ด ์žˆ์–ด ๋ณต์Šตํ•œ๋‹ค๋Š” ๋Š๋‚Œ์œผ๋กœ ์ž๋ฃŒ๋ฅผ ์ฐพ์•„๊ฐ€๋ฉฐ ์ง„ํ–‰์ค‘์ด๋‹ค. Recycler view๋Š” ์‚ฌ์šฉ๋ฐฉ๋ฒ•์ด ๋ฌด์กฐ๊ฑด ์ต์ˆ™ํ•ด์•ผํ•œ๋‹ค๊ณ  ๋Š๊ปด์„œ ์ด๋ฒˆ์— ์ œ๋Œ€๋กœ ๋ฝ€๊ฐฐ๋‹ค. ์šฐ์™• ์ด๋ชจํ‹ฐ์ฝ˜ ์ƒ๊ฒผ๋‹ค. ์—…๋ฐ์ดํŠธ๋œ๋“ฏ ! 1. RecyclerView ๊ด€๋ จ XML element ์ƒ์„ฑ ๋ฆฌ์‚ฌ์ดํด๋Ÿฌ๋ทฐandroidx.recyclerview.widget.RecyclerView ์™€ ๊ทธ ์•„์ดํ…œ ๋ทฐ ์ƒ์„ฑ ์•„์ดํ…œ ๋ทฐ Root layout ํฌ๊ธฐ ์†์„ฑ์€ ์•„๋ž˜์™€ ๊ฐ™์ด ๊ถŒ์žฅํ•œ๋‹ค. item_room.xml android:layout_width="wrap_content" android:layout_height="wrap_content.. 2021. 5. 15.
728x90
๋ฐ˜์‘ํ˜•