A
A
AnteFil2021-02-15 16:16:20
Android
AnteFil, 2021-02-15 16:16:20

How to give data to the user on the screen?

I use retrofit and do it so that now, upon successful receipt of data, I print the user's phone number in the console, how can I transfer it, for example, to a table and display it on the screen?

api.fetchAllusers().enqueue(object : Callback<List<User>>{
            override fun onResponse(call: Call<List<User>>, response: Response<List<User>>) {
                d("daniel", "onResponse: ${response.body()!![0].phone}")
            }
            override fun onFailure(call: Call<List<User>>, t: Throwable) {

            }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question