Android Question Get Label's real height when height is set to -2

KMatle

Expert
Licensed User
Longtime User
I've defined a label by code and set the height to -2 (= view changes it's height to fit the content).

When I check the height later (to add another label under the first one) the height is still set to -2. How can I get the real height?

Unbenannt.JPG
 
Top