Class PosterImageLoader

java.lang.Object
com.example.lottery.util.PosterImageLoader

public final class PosterImageLoader extends Object
Centralizes poster image loading so screens can render either local URIs, remote download URLs, or Base64 encoded strings.
  • Method Details

    • load

      public static void load(android.widget.ImageView imageView, Object imageSource, @DrawableRes int placeholderResId)
      Loads a poster image into the provided ImageView using Glide with a placeholder fallback.
      Parameters:
      imageView - The target ImageView.
      imageSource - A remote URL, file/content URI string, Uri instance, or Base64 string.
      placeholderResId - Drawable used when no image is available or loading fails.