I have an empty scrollview. I create with inflater a text view, add it to the ScrollView programmatically and then do:
rsView.smoothScrollBy((viewLeft + viewWidth / 2) - center, 0);
BUT viewLeft and viewWidth are 0 as the view is not measured yet. Any suggestions on how to make it scroll the view properly?