‫Hello, my friends, and welcome back.
‫In this video, we we're going to display the data received by the retrofit and transformed into Java
‫objects.
‫We are going to display them into the text view.
‫So in the previous video, we succeeded in displaying the titles into the Logcat.
‫We are going to display them now into the text view here.
‫So I created a scrollable view, I will put it the text view inside it.
‫And now let me go to the main activity.
‫I created the scroll view because I need a long text.
‫Okay.
‫So I created a long.
‫Text of you scrollable view.
‫I create val result object equal to.
‫I need to display the album title only.
‫And for that I'm going to use the string template album item dot title.
‫It's very simple.
‫And here I want to go to another line.
‫Now.
‫Text of you.
‫I will give this text to view an ID text view and for for making things.
‫Faster.
‫I will not use the um the data binding text view or than text equal.
‫So type text view equal find view by id or.id.
‫Oops.
‫Are that ID?
‫Dot text view.
‫Alt+ enter to import the text view.
‫And here I will remove these diamonds.
‫I will comment this logcat logging action and the last step is to display inside the text view.
‫Dot set text or the text.
‫This is the text of you.
‫I will rename it text view dot text equal to append result.
‫Okay, because we are going to append we are going to add every time the data to this result.
‫So I will use append method and result.
‫So what we've done here, I just comment that log I stored all the elements of the album.
‫Into the result.
‫And I'm setting the text for you.
‫Let's run again.
‫And now it should work.
‫And here we go.
‫This is our application if we scroll here.
‫Album title.
‫This is the first title, second title, and so on.
‫So these are all the titles in them.
‫Let me check the last.
‫Title.
‫And here we go.
‫This is the title, 100.
‫Of the album.
‫Okay, So congratulations, guys.
‫We succeeded in getting and transforming this Json file into something useful in Kotlin.
‫Which are the objects here?