In a few words, I want to scale the view - in the same way as the Android Market does when you click the "Advanced" button, for example, "Description".
I understand that the Android Market has the structure of the following structure:
<FrameLayout android:id="@+id/artists_frame" android:layout_width="fill_parent" android:layout_height="64dip" android:layout_below="@id/something1" android:layout_above="@id/something2" > </FrameLayout>
So, I tried various animations / LayoutAnimations in FrameLayout (via view.setAnimation(), view.setLayoutAnimation() and ScaleAnimation ), but the effect is always the same: the view is animated, but the actual layout_height after scaling remains the same (so the position of the others views dependent on this FrameLayout remains unchanged).
After that, I thought: I am changing in the layout_height loop of this FrameLayout:
layoutParams = view.getLayoutParams() layoutParams.height = scaleTo; layout.setLayoutParams(layoutParams);
I have an animated, market view, but cost (performance !!!) is a way ...
So, the question arises: is there any other correct way to scale (for example, a height from 50dip to 200dip) of this View / ViewGroup in order to change the position of the views under the animation view?
Kocus
source share