use of android.support.v4.app.ActivityOptionsCompat in project bugzy by cpunq.
the class CaseDetailsActivity method openImageActivity.
@Override
public void openImageActivity(View view, String imagePath) {
Pair<View, String> bug = new Pair<>(view, "image");
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, bug);
Intent intent = new Intent(this, FullScreenImageActivity.class);
Bundle arg = new Bundle();
arg.putString("img_path", imagePath);
intent.putExtras(arg);
ActivityCompat.startActivity(this, intent, options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project Ruisi by freedom10086.
the class ViewImgActivity method open.
public static void open(Context context, String url) {
Intent intent = new Intent(context, ViewImgActivity.class);
intent.putExtra("url", url);
needAnimate = true;
ActivityOptionsCompat compat = ActivityOptionsCompat.makeCustomAnimation(context, R.anim.fade_in, R.anim.fade_out);
ActivityCompat.startActivity(context, intent, compat.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project FastHub by k0shk0sh.
the class ActivityHelper method start.
@SafeVarargs
public static void start(@NonNull Activity activity, Class cl, Pair<View, String>... sharedElements) {
Intent intent = new Intent(activity, cl);
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, sharedElements);
activity.startActivity(intent, options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project FastHub by k0shk0sh.
the class ActivityHelper method start.
public static void start(@NonNull Activity activity, Intent intent, @NonNull View sharedElement) {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, sharedElement, ViewHelper.getTransitionName(sharedElement));
activity.startActivity(intent, options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project FastHub by k0shk0sh.
the class ActivityHelper method start.
@SafeVarargs
public static void start(@NonNull Activity activity, @NonNull Intent intent, @NonNull Pair<View, String>... sharedElements) {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, sharedElements);
activity.startActivity(intent, options.toBundle());
}
Aggregations