Kong-droid

  • 홈
  • 태그
  • 방명록

Glide 2

[Android / Glide] Glide override / Glide 이미지 크기 조정

overrideoverride는 이미지의 크기를 강제로 지정하여 로드할 때 사용되는 메서드입니다우선 함수 원형을 보자면,paramater로 width, height을 받아서 크기를 조절해줍니다  @NonNull @CheckResult public T override(int width, int height) { if (isAutoCloneEnabled) { return clone().override(width, height); } this.overrideWidth = width; this.overrideHeight = height; fields |= OVERRIDE; return selfOrThrowIfLocked(); } 만약 width, height이 같..

📱 Android 2024.10.08

[Android] Glide vs Picasso

이미지 라이브러리 중 가장 유명한 Glide와 Picasso입니다 각각 장단점은 잘 모르고 있었던터라, 한번 조사해봤어요 Glide Glide.with(context) .load(imageUrl) .apply(RequestOptions() .centerCrop() .placeholder(R.drawable.loading_spinner) .diskCacheStrategy(DiskCacheStrategy.ALL)) .into(imageView) 장점 - GIF, webp 지원 - 이미지 로딩 성능이 좋다 - 생명주기와 연동된다 Glide.with(context) context가 Activity / Fragment 에 따라 해당 컴포넌트 생명주기와 연동해 동작합니다 ex) 이미지 로딩이 진행 중인데 컴포넌트들..

📱 Android 2024.03.17
이전
1
다음
더보기
프로필사진

Kong-droid

👩🏻‍💻 Android Developer📱

  • 👩🏻‍💻 Develop (146)
    • 💡 Kotlin (11)
    • 📱 Android (67)
    • 🤖 Compose (25)
    • 🦋 Flutter (1)
    • ☕️ Java (4)
    • 💻 프로그래밍 (12)
    • 🐛 버그 (6)
    • 🧐 알고리즘 (8)
      • ⏳ 알고리즘 풀이 (4)
    • 🔍 기술파헤치기 (2)

Tag

rxjava kotlin, 안드로이드, android compose, compose recomposition, compose state, android usecase, coroutine launch, Android, rxjava, java, android viewmodel, 코루틴, Kotlin, coroutine, Android dataBinding, Android Repository, android glide, compose, Kong-droid, Android DI,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바