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 the 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 in the time
between filling the table and firing the OnClickListener().
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.

Any ideas?
Thanks in advance!
Dominik

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to