I use Asynctask
to set the image to RecyclerView
when the page is executed
Asynctask
takes a recyclerView's width and height
However, this error occurs 'IllegalArgumentException: width should be > 0'
I looked up similar cases and saw that it was a problem to run too soon
So I tried onPause
, onStart
, and onPostCreated
, but the same result came up
Put it in the button and run it to get the result I want
Therefore, I think that the point of execution is the problem
When should I call this method to get the page to run and immediately set the
image to recyclerView?