Code example for LayoutTransition

0
            } 
        }); 
    } 
 
    private void resetTransition() { 
        mTransitioner = new LayoutTransition();
        container.setLayoutTransition(mTransitioner);
    } 
 
    private void setupCustomAnimations() { 
        // Changing while Adding 
        PropertyValuesHolder pvhLeft =
                PropertyValuesHolder.ofInt("left", 0, 1);
        PropertyValuesHolder pvhTop =
                PropertyValuesHolder.ofInt("top", 0, 1);
        PropertyValuesHolder pvhRight =
                PropertyValuesHolder.ofInt("right", 0, 1);
        PropertyValuesHolder pvhBottom =
                PropertyValuesHolder.ofInt("bottom", 0, 1);
        PropertyValuesHolder pvhScaleX =
                PropertyValuesHolder.ofFloat("scaleX", 1f, 0f, 1f);