When a user clicks a button on my main view, I inflate a new view and add it to my main view. My new view contains a TextView with the default text of "HelloWorld", while setting up the view I setText("You have just come from...") and I getLeft() and getRight() on my textview. Problem is, it's returning coordinates as if the text was still "HelloWorld".
I think it's probably doing this because the updated text hasn't been drawn yet. But if I click a button in this new view and in onClick do the getLeft() and getRight(), it works correctly. What am I doing wrong?