일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- android custom view
- FastAPI
- ListAdapter
- map
- getChangePayload
- exoplayer cache
- list map
- kotlin collection
- 안드로이드
- doc2vec
- ChatGPT
- ktor api call
- android exoplayer
- 유튜브
- video caching
- ListAdapter DiffUtil
- build with ai
- llm
- 스피너
- android ktor
- ExoPlayer
- 독서
- ktor client
- Python
- 시행착오
- ansi2html
- android
- DiffUtil.ItemCallback
- AWS EC2
- kotlin list
- Today
- Total
목록전체 글 (100)
버튼 수집상
배경 같은 종류의 데이터가 각기 다른 json 키 이름으로 들어오는 api 가 있었다. 구글의 gson 라이브러리는 json 키와 데이터 클래스 변수명을 1:1로 매핑시키므로 별도의 처리가 필요했다. 예시 데이터 클래스 data class TestResponse( // 키 이름이 다른 json 값들을 읽어서 List에 add. val areaList: List? ) { data class AreaData( @SerializedName("itemType") val itemType: String?, @SerializedName("imagePath") val imagePath: String? ) } 응답값 json { "banner1" : { "itemType" : "banner1", "imagePath" :..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Eq6En/btr0gkMy2Eg/s2gPMMkKZ9ytTykcWkFv40/img.png)
themes.xml 파일에서 windowIsTranslucent=true 옵션을 지우고 앱을 다시 설치하니까 해결됐다. 관련 스택오버플로우 번역
class Tester( val title : String, val list: List ) class Category( val cateNm: String, val goodsList: List ) class Goods( val goodsNm: String, val tagList: List ) fun main() { // 2차원 리스트 val list2d : List = listOf( Tester(title = "1", list = listOf("이것을", "지금부터")), Tester(title = "2", list = listOf("하나의", "리스트로", "쭈우욱")), Tester(title = "3", list = listOf("뽑을", "것입니다.")) ) val flatten : List = l..
배경 인트로에서 메인으로 넘어간 후, 웹뷰가 그려지기 전까지 하얀 화면이 비치는게 거슬렸다. 메인 액티비티 위에서 프래그먼트를 띄우는 방법밖엔 떠오르지가 않는다. 인트로 화면을 액티비티로 가져가면서 메인 액티비티에 웹뷰를 미리 그릴 수는 없는지 알아보면서 서치. Preloading an activity before displaying it? I am developing a game for android, it takes a few seconds of time to load everything before you can play. During this time or the splash screen, I would like to display a progress bar to show the ... stack..
6자리 컬러코드 앞에 투명도를 나타내는 두 자리수를 더한다. • 100% — FF • 90% — E6 • 80% — CC • 70% — B3 • 60% — 99 • 50% — 80 • 40% — 66 • 30% — 4D • 20% — 33 • 10% — 1A 예) 투명도 50%의 검정색 -> #80000000 두 자리수 알파 헥스코드를 구하는 방법. 256을 100으로 놓고 비율에 해당하는 숫자의 16진수를 구한다. 예) 투명도 85% -> 256 * 0.85 = 217.6 -> 217.6 / 16 = 13.6 -> 217.6 % 16 = 9.6 -> #D9
스피너 Spinner 를 열지도 않았는데 뷰를 초기화하자마자 디폴트값으로 onItemSelectedListener를 탔다. 검색해보니, 아이템을 선택한 건지 아닌지 판별하기 위해서는 터치리스너를 빼서 플래그를 켜야하는 것 같았다. Android Spinner OnItemSelected ONLY on User Interaction I know that this question has been answered multiple times, but I have not found any of them satisfactory and certainly not elegant. The issue is that OnItemSelected gets fired not only when the u... stackoverflow..
배경 카카오 로그인 SDK 테스트할 때 카카오톡이 설치 돼있으나 로그아웃된 상태 에서 에러가 났다. 웬만한 상용 폰은 카카오톡 로그인이 돼 있지만 QA/디버깅용 공기계에서는 자주 발견할 수 밖에 없었다. 그런데 공식 문서에 따로 정의돼있지 않은 에러였다. AuthError(statusCode=302, reason=Unknown, response=AuthErrorResponse(error=NotSupportError, errorDescription=KakaoTalk is installed but not connected to Kakao account.)) 해결-1 정의 안 된 에러가 더 있을 수 있으므로 일일히 대응하지 않고 카카오톡앱 로그인에서 어떤 에러가 발생하더라도 카카오계정 로그인으로 우회하도록 처..
안드로이드 소스코드에서 심심찮게 보이는 가로줄과 @Derpecated 어노테이션. 이 함수는 더 이상 쓰지 말아라- 정도의 의미로 알고 팀원끼리도 '디프리케이티드' 라고 부르면서 작업했다. 문득 그 뜻이 제대로 궁금해서 검색. 원문 What is the difference between obsolete and deprecate in computer science? Given the two terms "obsolete" and "deprecate" in computer science, what is the difference between them? What I understand, Deprecated means still available for use but will no longer be develo..
시스템과 인프라를 이해하는 개발자. 문제를 많이 맞닥뜨려본 개발자. 5-6년 동안 자바로 기능만 짜왔던 개발자? 한 가지 언어, 한 가지 영역만 알아서는 애매. 다수의 개발팀이 있는 중견~대기업에서는 하나의 분야에서 경력이 높은 사람을 뽑고 싶어할 것. 하지만 어떤 규모의 회사에서든 팀 리더가 되려면 전체적으로 알아야한다. 다시한번 보고 위 내용 다시 정리.