Home | History | Annotate | Download | only in animation

Lines Matching defs:animation

17 package android.view.animation;
74 * Returns the current animation time in milliseconds. This time should be used when invoking
75 * {@link Animation#setStartTime(long)}. Refer to {@link android.os.SystemClock} for more
79 * @return the current animation time in milliseconds
95 * Loads an {@link Animation} object from a resource
98 * @param id The resource id of the animation to load
99 * @return The animation object reference by the specified id
100 * @throws NotFoundException when the animation cannot be loaded
102 public static Animation loadAnimation(Context context, @AnimRes int id)
110 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
115 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
124 private static Animation createAnimationFromXml(Context c, XmlPullParser parser)
130 private static Animation createAnimationFromXml(Context c, XmlPullParser parser,
133 Animation anim = null;
160 throw new RuntimeException("Unknown animation name: " + parser.getName());
176 * @param id The resource id of the animation to load
177 * @return The animation object reference by the specified id
178 * @throws NotFoundException when the layout animation controller cannot be loaded
188 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
193 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
230 throw new RuntimeException("Unknown layout animation name: " + name);
238 * Make an animation for objects becoming visible. Uses a slide and fade
243 * @return The new animation
245 public static Animation makeInAnimation(Context c, boolean fromLeft) {
246 Animation a;
259 * Make an animation for objects becoming invisible. Uses a slide and fade
264 * @return The new animation
266 public static Animation makeOutAnimation(Context c, boolean toRight) {
267 Animation a;
281 * Make an animation for objects becoming visible. Uses a slide up and fade
285 * @return The new animation
287 public static Animation makeInChildBottomAnimation(Context c) {
288 Animation a;
299 * @param id The resource id of the animation to load
300 * @return The animation object reference by the specified id
310 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
315 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
329 * @param id The resource id of the animation to load
340 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +
345 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" +