Examples of Animation


Examples of android.view.animation.Animation

        LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);
        testResult.addView(v0, 0, layoutParams);
        testResult.addView(v1, 1, layoutParams);
        testResult.setText("WARNING, before calling any test make sure server.py is running !!!");

        Animation inAnim = AnimationUtils.loadAnimation(this, R.anim.push_left_in);
        Animation outAnim = AnimationUtils.loadAnimation(this, R.anim.push_left_out);
//        Animation inAnim = AnimationUtils.loadAnimation(this, android.R.anim.fade_in);
//        Animation outAnim = AnimationUtils.loadAnimation(this, android.R.anim.fade_out);
        inAnim.setStartOffset(250);
        testResult.setInAnimation(inAnim);
        testResult.setOutAnimation(outAnim);
View Full Code Here

Examples of android.view.animation.Animation

    OS.invalidateOptionsMenu(this);

    View list = getListView();
    int cx = root.getWidth() / 2;
    int cy = root.getHeight() / 2;
    Animation animation = new Flip3dAnimation(list, edit, cx, cy, true);
    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        hideToast();
        if (0 == secretsList.getCount()) {
          showToast(getText(R.string.edit_instructions));
View Full Code Here

Examples of android.view.animation.Animation

    OS.invalidateOptionsMenu(this);

    View list = getListView();
    int cx = root.getWidth() / 2;
    int cy = root.getHeight() / 2;
    Animation animation = new Flip3dAnimation(list, edit, cx, cy, false);
    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        if (AdapterView.INVALID_POSITION != editingPosition) {
          ListView listView = getListView();
          listView.requestFocus();
View Full Code Here

Examples of com.badlogic.gdx.graphics.g2d.Animation

    ResourceManager.loadResource("missile_score", new Texture("items/missile_score.png"));
   
    // Animaciones
        atlas = new TextureAtlas(Gdx.files.internal("ship/ship.pack"));
        ResourceManager.loadResource("ship", atlas);
    ResourceManager.loadResource("ship", new Animation(0.15f, atlas.findRegions("ship")));

        // Animación de nave pequeña
        atlas = new TextureAtlas(Gdx.files.internal("enemy/small.pack"));
    ResourceManager.loadResource("small_enemy", new Animation(0.15f, atlas.findRegions("small")));
        // Animación para la roca
        atlas = new TextureAtlas(Gdx.files.internal("enemy/stone.pack"));
    ResourceManager.loadResource("stone", new Animation(0.15f, atlas.findRegions("stone")));

    ResourceManager.loadResource("pursuer_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/pursuer.png", 6));
    ResourceManager.loadResource("shooter_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/shooter.png", 6));
    ResourceManager.loadResource("big_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/big.png", 6));
    ResourceManager.loadResource("missile", ResourceManager.createAnimationFromSpriteSheet("items/missile.png", 16));
        // Animación para las explosiones
        atlas = new TextureAtlas(Gdx.files.internal("explosion/explosion.pack"));
    ResourceManager.loadResource("explosion", new Animation(0.15f, atlas.findRegions("explosion")));

    //ResourceManager.loadResource("block", new SpriteSheet(new Image("res/items/blocks1.png"), 32, 32, 2, 2));

    // Sonidos
    ResourceManager.loadResource("shoot", Gdx.audio.newSound(Gdx.files.internal("sounds/disparo.mp3")));
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.Animation

  }
 
  private AnimationDesc obtain(final String id, int loopCount, float speed, final AnimationListener listener) {
    if (id == null)
      return null;
    final Animation anim = target.getAnimation(id);
    if (anim == null)
      throw new GdxRuntimeException("Unknown animation: "+id);
    return obtain(anim, loopCount, speed, listener);
  }
View Full Code Here

Examples of com.emitrom.touch4j.charts.client.Animation

    public void setFx(Animation value) {
        JsoHelper.setAttribute(jsObj, "fx", value.getJsObj());
    }

    public void setAnimationDuration(int duration) {
        Animation animation = new Animation();
        animation.setDuration(duration);
        this.setFx(animation);
    }
View Full Code Here

Examples of com.google.gwt.animation.client.Animation

     */
    private void translateTo(int duration, final int fromY, final int finalY) {
        if (duration > 0) {
            transitionOn = true;

            momentum = new Animation() {

                @Override
                protected void onUpdate(double progress) {
                    lastAnimatedTranslateY = (fromY + (finalY - fromY)
                            * progress);
 
View Full Code Here

Examples of com.google.gwt.animation.client.Animation

    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }
View Full Code Here

Examples of com.google.gwt.animation.client.Animation

                .get(0).WIDTH) / 2.0);
        int step = 2 * columnMargine + items.get(0).WIDTH;
        firstItemLeft = columnMargine
                - (int) (Math.ceil(selected / rows) * step);

        Animation animation = new Animation() {
            int move = (firstItemLeft - items.get(0).getLeft());

            @Override
            protected void onUpdate(double progress) {
                moveButtons((int) (move * progress));

                if (progress >= 1) {
                    animating = false;
                    setSize();
                    client
                            .updateVariable(paintableId, "cursor", selected,
                                    true);
                }
            }
        };

        // softAnimationTime = 250 * (Math.abs(firstItemLeft
        // - items.get(0).getLeft()) / 100);
        animating = true;
        animation.run(softAnimationTime);
    }
View Full Code Here

Examples of com.google.gwt.animation.client.Animation

    /**
     * Animate moving one item in from the left
     */
    private void animateFromLeft() {
        Animation animation = new Animation() {
            int move = (areaWidth / columns);

            @Override
            protected void onUpdate(double progress) {
                moveButtons((int) (move * progress));

                if (progress >= 1) {
                    animating = false;
                    selected -= rows;
                    if (selected < rows) {
                        selected = 0;
                    }
                    setSize();
                    client
                            .updateVariable(paintableId, "cursor", selected,
                                    true);
                }
            }
        };
        animating = true;
        animation.run(animationTime);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.