Код: Выделить всё
[v1]
[v2]
Я пробовал что-то вроде этого:
Код: Выделить всё
Animation a = new Animation()
{
int initialHeight;
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
final int newHeight = (int)(initialHeight * interpolatedTime);
v.getLayoutParams().height = newHeight;
v.requestLayout();
}
@Override
public void initialize(int width, int height, int parentWidth, int parentHeight) {
super.initialize(width, height, parentWidth, parentHeight);
initialHeight = height;
}
@Override
public boolean willChangeBounds() {
return true;
}
};
С javascript это одна строка jQuery! Есть ли простой способ сделать это с Android?
Подробнее здесь: https://stackoverflow.com/questions/494 ... -animation