• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java-android

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,
please i need a help with my code,
part of my code required to picture, now i found some line was very helpful for me but i can't find the write way to do it, i am trying to do like this

Glide.with(this).load(urlNavHeaderBg)
               .crossFade()
               .diskCacheStrategy(DiskCacheStrategy.ALL)
               .into(imgNavHeaderBg);

now, the urlNavHeaderBg is string and inside that string is just regular url like "http:aaa.aaa.com/example.jpg" the function works perfect and the image loaded perfectly in the app
but i don't need to access the internet or load from the internet, i just want to load from the drawable folder i mean i want to load internally like store the image inside the app and load from the folder
please how i can do that

thank you
 
Ranch Hand
Posts: 570
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Get the answer from Android - How to Load Image by name using Glide
 
Attractive, successful people love this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic