Code example for LayoutAnimationController

Methods: setOrder

0
    animation.setRepeatCount(1);
    animation.setRepeatMode(Animation.REVERSE);
    set.addAnimation(animation);
    set.setDuration(500);
 
    LayoutAnimationController controller = new LayoutAnimationController(set,
        0.25f); 
    controller.setOrder(LayoutAnimationController.ORDER_NORMAL);
    panel.setLayoutAnimation(controller);
  } 
 
  public void updateTrendIcon(String trendState) {
    if (trendState.equals(CategoryDbTable.KEY_TREND_DOWN_45_BAD))
      mTrendIconDrawable = getResources().getDrawable(R.drawable.trend_down_45_bad);
    else if (trendState.equals(CategoryDbTable.KEY_TREND_DOWN_45_GOOD))
      mTrendIconDrawable = getResources().getDrawable(R.drawable.trend_down_45_good);
    else if (trendState.equals(CategoryDbTable.KEY_TREND_DOWN_30_BAD))
      mTrendIconDrawable = getResources().getDrawable(R.drawable.trend_down_30_bad);
    else if (trendState.equals(CategoryDbTable.KEY_TREND_DOWN_30_GOOD))
      mTrendIconDrawable = getResources().getDrawable(R.drawable.trend_down_30_good);
    else if (trendState.equals(CategoryDbTable.KEY_TREND_DOWN_15_BAD))