android.transition.Explode.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中android.transition.Explode.<init>()方法的一些代码示例,展示了Explode.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Explode.<init>()方法的具体详情如下:
包路径:android.transition.Explode
类名称:Explode
方法名:<init>

Explode.<init>介绍

暂无

代码示例

代码示例来源:origin: bluelinelabs/Conductor

@Nullable
public Transition getExitTransition(@NonNull ViewGroup container, @Nullable View from, @Nullable View to, boolean isPush) {
  if (isPush) {
    return new Explode();
  } else {
    return new Slide(Gravity.BOTTOM);
  }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
@Nullable
public Transition getEnterTransition(@NonNull ViewGroup container, @Nullable View from, @Nullable View to, boolean isPush) {
  if (isPush) {
    return new Slide(Gravity.BOTTOM);
  } else {
    return new Explode();
  }
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

@Override
protected void onCreate(Bundle savedInstanceState) {
  // 设置一个exit transition
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
    getWindow().setEnterTransition(new Explode());
    getWindow().setExitTransition(new Explode());
  }
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_fragment);
  newFragment = new VideoFragment();
  FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
  transaction.replace(R.id.frameLayout, newFragment);
  transaction.addToBackStack(null);
  transaction.commit();
}

代码示例来源:origin: qs-lll/ExpandingPager

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void setupWindowAnimations() {
  Explode slideTransition = new Explode();
  getWindow().setReenterTransition(slideTransition);
  getWindow().setExitTransition(slideTransition);
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.a_activity_three);

    Explode explode = new Explode();
    explode.setDuration(500);
    getWindow().setExitTransition(explode);
    getWindow().setEnterTransition(explode);
  }
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
  public void onClick(View view) {
    Explode explode = new Explode();
    explode.setDuration(500);
    getWindow().setExitTransition(explode);
    getWindow().setEnterTransition(explode);
    ActivityOptionsCompat oc2 = ActivityOptionsCompat.makeSceneTransitionAnimation(AActivityOne.this);
    Intent i2 = new Intent(AActivityOne.this,AActivityThree.class);
    startActivity(i2, oc2.toBundle());
  }
});

代码示例来源:origin: CarGuo/GSYVideoPlayer

getWindow().setEnterTransition(new Explode());
getWindow().setExitTransition(new Explode());

代码示例来源:origin: OCNYang/Android-Animation-Set

private Transition buildEnterTransitionByCode() {
  Explode enterTransition = new Explode();
  enterTransition.setDuration(500);
  return enterTransition;
}

代码示例来源:origin: GuoFeilong/BehivorDemo

private Explode buildMyExplodeInstance() {
  Explode explode = new Explode();
  explode.setDuration(animDuration);
  return explode;
}

代码示例来源:origin: blundell/QuickSand

private Transition getTransition() {
  Transition transition = new Explode();
  transition.setDuration(TimeUnit.SECONDS.toMillis(6));
  return transition;
}

代码示例来源:origin: Wing-Li/Material-Animations-CN

private Transition buildEnterTransition() {
    Explode enterTransition = new Explode();
    enterTransition.setDuration(getResources().getInteger(R.integer.anim_duration_long));
    // 修饰动画,定义动画的变化率
    enterTransition.setInterpolator(new AccelerateInterpolator());
    return enterTransition;
  }
}

代码示例来源:origin: google-developer-training/android-fundamentals-apps-v2

@Override
  public void onClick(View view) {
    // Relaunch the activity with the transition information.
    Intent intent = new Intent(context,context.getClass());
    intent.putExtra(TRANSITION_TYPE,"Explode");
    getWindow().setExitTransition(new Explode());
    startActivity(intent, ActivityOptions.
        makeSceneTransitionAnimation(
            (Activity)context).toBundle());
  }
});

代码示例来源:origin: fasteque/rgb-tool

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  getWindow().setEnterTransition(new Explode());
  getWindow().setExitTransition(new Fade());
  getWindow().setAllowEnterTransitionOverlap(true);
}

相关文章