Animationset set =NewAnimationset (false); Animation Animation=NewAlphaanimation (0,1);//alphaanimation controls the animation effect of gradual transparencyAnimation.setduration (500);//animation time of millisecondsSet.addanimation (animation);//Add Animation CollectionAnimation=NewTranslateanimation (1, 13, 10, 50);//scaleanimation Control The animation effect of size scalingAnimation.setduration (300); Set.addanimation (animation); Animation=NewRotateanimation (30,10);//animation effect of translateanimation control screen panningAnimation.setduration (300); Set.addanimation (animation); Animation=NewScaleanimation (5,0,2,0);//rotateanimation animation effect of controlling the angle change of the screenAnimation.setduration (300); Set.addanimation (animation); Layoutanimationcontroller Controller=NewLayoutanimationcontroller (Set, 1); GridView GridView= (GridView) This. Findviewbyid (R.id.gridview); GridView. Setlayoutanimation (Controller); //GridView setting Animation effectListView ListView= (ListView) This. Findviewbyid (R.id.listview); Listview.setlayoutanimation (Controller); //ListView setting Animation effect