3
Well, what I want to do is an Activity where a Json is consumed. The problem is that all tutorials show only how to return a Json in a listview. What I want is a structure more or less like this:
- Title :
Textview
; - Imagery :
Imageview
; - Text :
Textview
;
This coming from a single Json, as in the example:
{
"item":[
{ "titulo":"Recomendação",
"imagem":"http://i.imgur.com/Bl0jBTc.png",
"texto":"Texto",
}
]
}
I currently use Picasso to upload images. What a good way to do it?
@Thiagoluizdomacoski use it nowadays. What I need is to know how I would display this json on a simple screen, because all the tutorials I’ve seen just show you how to display json in a listview
– Marceloawq
Just to add knowledge, see also the Glide which is also very good.
– viana
@Acklay told me about Glide and Picasso, so I chose Picasso. But after I had already done everything I went to see and it seems that Glide is better, accepts gifs, etc. I think I will replace Picasso when I have time.
– Marceloawq
@Marceloawq think I’ve tended what you want to put on without time now. Have you been using with.google.gson.Gson? Later if no one has answered, I put an answer here.
– viana
@Acklay no, in the tutorial that I followed it shows with
org.json
– Marceloawq
The Gson helps a lot saw! Then take a look too.
– viana
@Acklay will look yes. I’m starting to study about Json and everything is welcome, thanks for the tip!
– Marceloawq
@Thiagoluizdomacoski corrected
– Marceloawq