Android Concept | Techbirds
Posted on: September 4, 2017 /
Categories: Mobile Applications
// Alternative of setAlpha() method Used for transperancy(Added in API level 11)is class AlphaAnimation , applicable in lower version of android as well(below API level 11).
Above or at API level 11: We can use setAlpha(float) method.
Below API level 11: We can use the way specified below.
AlphaAnimation animation = new AlphaAnimation(alpha, alpha); animation.setDuration(duration); animation.setFillAfter(true);
view.startAnimation(animation);
445 total views, 1 views today
Share this On