I set android:fillAfter="true" in res/anim.
I want to move a LinearLayout to y
Into that LinearLayout I put a button with a Listener.
After the anim of the LinearLayout, that LinearLayout is in new position but the button into that LinearLayout doesn't have the Listener.
The Listener is where the button would be if the android:fillAfter="false".
I tried also with:
public void onAnimationEnd(Animation arg0)
{
LayoutParams params = new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
params.topMargin = 200;
_mylayout.setLayoutParams(params);
_myAnim.setFillAfter(false);
}
But nothing happens, because I don't align perfectly the percent into anim android:toYDelta="70%" and params.topMargin = 200;
How do I solve that? thanks