use of android.support.v4.app.ActivityOptionsCompat in project mosby by sockeqwe.
the class BaseMailsFragment method onMailClicked.
@Override
public void onMailClicked(MailsAdapterHolders.MailViewHolder vh, Mail mail) {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(), Pair.create((View) vh.senderPic, getString(R.string.shared_mail_sender_pic)), Pair.create((View) vh.subject, getString(R.string.shared_mail_subject)), Pair.create((View) vh.date, getString(R.string.shared_mail_date)), Pair.create((View) vh.star, getString(R.string.shared_mail_star)), Pair.create(getActivity().findViewById(R.id.toolbar), getString(R.string.shared_mail_toolbar)));
intentStarter.showMailDetails(getActivity(), mail, options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project mosby by sockeqwe.
the class MailsFragment method onCreateMailClicked.
@OnClick(R.id.createMail)
public void onCreateMailClicked() {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(), createMailButton, getString(R.string.shared_write_action));
intentStarter.showWriteMail(getActivity(), null, options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project apps-android-wikipedia by wikimedia.
the class OnThisDayCardView method onMoreClick.
@OnClick({ R.id.view_on_this_day_click_container })
void onMoreClick() {
funnel.cardClicked(CardType.ON_THIS_DAY, getCard().wikiSite().languageCode());
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation((Activity) getContext(), dayTextView, getContext().getString(R.string.transition_on_this_day));
getContext().startActivity(OnThisDayActivity.newIntent(getContext(), age, getCard().wikiSite(), OnThisDayActivity.INVOKE_SOURCE_CARD_BODY), options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project apps-android-wikipedia by wikimedia.
the class MainFragment method onFeedNewsItemSelected.
@Override
public void onFeedNewsItemSelected(@NonNull NewsItemCard card, @NonNull HorizontalScrollingListCardItemView view) {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(requireActivity(), view.getImageView(), getString(R.string.transition_news_item));
startActivity(NewsActivity.newIntent(requireActivity(), card.item(), card.wikiSite()), options.toBundle());
}
use of android.support.v4.app.ActivityOptionsCompat in project bugzy by cpunq.
the class SplashActivity method startLoginActivity.
public void startLoginActivity() {
Pair<View, String> bug = new Pair<>(mBugView, "bug");
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, bug);
Intent intent = new Intent(this, LoginActivity.class);
ActivityCompat.startActivity(this, intent, options.toBundle());
}
Aggregations