How to wait for the render elements plug-in using addView()?
The point is simple, insert into block elements using addView, and after trying to measure their size using getWidth(), which returns 0, but if you call getWidth() through pressing for example the button have respectively after drawing size gets as it should, the conclusion is that elements simply do not have time to render in the time of the request, I think there should be some kind of colback or trick of some sort, unfortunately the search in the documentation and Google didn't give any reasonable explanations.
1 answer
Find more questions by tags Android