Liquid syntax error: 'raw' tag was never closed
For further actions, you may consider blocking this person and/or reporting abuse
Liquid syntax error: 'raw' tag was never closed
For further actions, you may consider blocking this person and/or reporting abuse
Derek -
Sajjad Rahman -
Pratik -
codermove -
Top comments (10)
In this post it was missing adding the internet permission in the AndroidManifest.xml
"android.permission.INTERNET"
It helped me a lot, thanks!
I have a problem , I cannot get onto onResponse , I only get onFailure. This is my code:
object RetrofitClientInstance {
}
interface APIServices {
}
class ExerciseFragment : Fragment() {
}
in your code response.body()!! Should return a MutableList
Just pass response.body()!! to your recyclerview adapter instead of response.body()!!.toMutableList()
Is anyone else having an issue getting the images (the movie posters) to load?
I would post my code, but I'm not sure where this is even coming from. I'm combing over it and trying different things in different places.
Figured it out!
In the
RecyclerView adapter
Glide.with(itemView.context).load("http://image.tmdb.org/t/p/w500${movie.poster_path}").into(photo)
Should be:
Glide.with(itemView.context).load("https://image.tmdb.org/t/p/w500${movie.poster_path}").into(photo)
I don't know if things have changed, but the
http
should be anhttps
or nothing will send.Do you have any other tutorials about items clicking and displaying detail pages?
I have one that I will be publishing within the next few days.
I dont know why when i run the code it returns the error E/RecyclerView: No adapter attached; skipping layout
This is because you forget to register your adapter in your RecycleView
Basically you can do something like that. example below:
val listOfItems = lisfOf("1", "2", "3")
recyclerView.layoutManager = LinearLayoutManager(this)
recyclerView.adapter = YourAdapter(listOfItems)
This is quick example that you following. I hope helped you. see u.
Please share your code through gist so that I can help you out