Exemplo n.º 1
0
 /** Start the animation. */
 public synchronized void startAnimation() {
   if (_animatorThread != null) {
     return; // Thread already created
   }
   _animatorThread = new AnimatorThread(this);
   _animatorThread.start();
 }
  public AnimatedGIFField(GIFEncodedImage image, long style) {
    // Call super to setup the field with the specified style.
    // The image is passed in as well for the field to configure its required size.
    super(image.getBitmap(), style);

    // Store the image and it's dimensions.
    _image = image;

    // Start the animation thread.
    _animatorThread = new AnimatorThread(this);
    _animatorThread.start();
  }
 protected void onDisplay() {
   animatorThread = new AnimatorThread(this);
   animatorThread.start();
   super.onDisplay();
 }
 protected void onUndisplay() {
   animatorThread.stop();
   super.onUndisplay();
 }
Exemplo n.º 5
0
 protected synchronized void onDisplay() {
   _animatorThread.startAnimation();
   super.onUndisplay();
 }