Если я вызываю getMeasuredWidth() или getWidth() для макета в onResume, он возвращает 0. Я думаю, что в этот момент это еще не нарисовано.
Также я думаю, что мне нужно поместить getMeasuredWidth() или getWidth() в метод обратного вызова, вызванный после того, как макет рисуется и известны измерения. Какой метод обратного вызова для Android следует использовать?