I have a very odd problem - or perhaps it's just odd to me.
I have an Activity in which I have a TableLayout. I fill this table with TableRows in which I display TextViews. Imagine this as a classical table with text content. After the loop is finished I want to read all the heights in pixels of all the TextView in this table. I do this with getHeight().
The problem I have now is that ALL the values are 0 (zero) pixels. Even though I have text in the TextViews. The odd thing about this is, if I read the height of the exact same TextViews in an OnClickListener() then I do get the real height of the elements. Why is that so? I mean, nothing has changed in the height of those elements.
I really need to be able to get the height of the TextViews right after I filled the table. To get the heights upon a click is too late already for what I want to do.
Thanks in advance!