본문 바로가기

IT/Android103

Android] Preference 구분선 넣기 app:allowDividerAbove="true" app:allowDividerBelow="true" 위 pref에는 allowDividerBelow 아래 pref에는 allowDividerAbove 넣어준다. How to manage dividers in a PreferenceFragment? I started dealing with preferences in a PreferenceFragment. Here's what I have: I'm trying to: get rid of the dividers between items. I suppose this can be defined from styles, but I can't figure... stackoverflow.com Note, a divide.. 2022. 9. 5.
Kotlin] 문자열합치기 joinToString https://kkh0977.tistory.com/682 53. (kotlin/코틀린) joinToString 사용해서 배열 데이터 출력 형식 변경 실시 - arrayOf , ArrayList /* =========================== */ [개발 환경 설정] ​ 개발 툴 : Eclipse 개발 언어 : kotlin /* =========================== */ ​ /* =========================== */ [소스 코드] package ex1 //===== [코.. kkh0977.tistory.com https://themach.tistory.com/188 [Kotlin 기초] String 배열을 String으로 합치기 String Array로 형성한 데이터를.. 2022. 6. 20.
Android] Targeting s+ (version 31 and above) requires that one of flag_immutable or flag_mutable 대응 / 안드로이드 12 https://developer.android.com/about/versions/12/behavior-changes-12?hl=ko 동작 변경사항: Android 12를 타겟팅하는 앱 | Android Developers Android 12를 타겟팅하는 앱에 영향을 주는 Android 12의 변경사항을 알아봅니다. developer.android.com 0 대신 PendingIntent.FLAG_MUTABLE를 추가한다. val pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_MUTABLE) https://onedaycodeing.tistory.com/159 안드로이드 12 PendingIntent 이슈 및 대응 .. 2022. 6. 16.
Android] Retrofit2로 데이터받아오기 Retrofit : Retrofit is a REST Client for Java and Android Retrofit uses the OkHttp library for HTTP requests. Retrofit쓰는 이유 Http개발을 빠르고 쉽게한다 통신 속도가 빠르다 . Json 구조의 데이터를 쉽게 가져올 수 있다. >> 서버와 통신하기 위한 라이브러리로 사용하면 서버와 통신 작업이 편해진다. 사용법 1. 라이브러리 추가 2. 권한 설정 >> 인터넷 권한 3. 데이터 모델 클라스 생성 >> @SerialzedName JSON으로 serialize 될 때 매칭되는 이름을 명시하는 목적으로 사용 @Expose object 중 해당 값이 null일 경우, json으로 만들 필드를 자동 생략해 준다. 4... 2022. 5. 16.