Code example for AlphaAnimation

Methods: setDurationsetStartOffset

0
        AlphaAnimation in = new AlphaAnimation(0.0f, 1.0f);
 
        in.setStartOffset(0);
        in.setDuration(500);
 
        AlphaAnimation out = new AlphaAnimation(1.0f, 0.0f);
 
        out.setStartOffset(0);
        out.setDuration(500);
 
        v.setInAnimation(in);
        v.setOutAnimation(out);
    } 
 
    /** 
     * Formats the given Time object so that it gives the month and year 
     * (for example, "September 2007"). 
     * 
     * @param time the time to format 
     * @return the string containing the weekday and the date 
Experience pair programming with AI  Get Codota for Java