Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 538
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!