This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

java-android  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Get the answer from Android - How to Load Image by name using Glide
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!