Nineoldandroids Project: http://nineoldandroids.com/
In a system version above level 11, you can use the following methods to achieve view panning, transparency
Text1.settranslationx ( -600 * arg1); Text1.setalpha (1-math.abs (arg1)); Text2.settranslationx ( -200 * arg1); Text2.setalpha (1-math.abs (arg1)); Text3.settranslationx ( -400 * arg1); Text3.setalpha (1-math.abs (arg1));
However, these methods cannot be used in versions below level 11, all to solve this problem, you can refer to Nineoldandroids to achieve the same effect
Viewpropertyanimator.animate (Text1). Setduration (0). Translationx ( -600*ARG1); Viewpropertyanimator.animate (Text2). Setduration (0). Translationx ( -200*ARG1); Viewpropertyanimator.animate (TEXT3). Setduration (0). Translationx ( -400*ARG1); Viewpropertyanimator.animate (Text1). Setduration (0). Alpha (1-math.abs (arg1)); Viewpropertyanimator.animate (Text2). Setduration (0). Alpha (1-math.abs (arg1)); Viewpropertyanimator.animate (TEXT3). Setduration (0). Alpha (1-math.abs (arg1));
Nineoldandroids implementing view animations in versions below level 11