For an animation I need to know the height from a View. The Problem is, that the getHeight() method allways return 0 unless the View is drawn. So is there any way to get height without drawing it?
In this case the View is a LinearLayout.
EDIT: I try to adapt the expand Animation from https://github.com/Udinic/SmallExamples/blob/master/ExpandAnimationExample/src/com/udinic/expand_animation_example/ExpandAnimation.java
With it I want to expand some more informations for a list item. I wasn′t able to achieve the same effect via xml. At the moment the Animation only works when you know the layout size before drawing it.
See Question&Answers more detail:os