Search in sources :

Example 76 with ActivityOptionsCompat

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());
}
Also used : ActivityOptionsCompat(android.support.v4.app.ActivityOptionsCompat) View(android.view.View)

Example 77 with ActivityOptionsCompat

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());
}
Also used : ActivityOptionsCompat(android.support.v4.app.ActivityOptionsCompat) OnClick(butterknife.OnClick)

Example 78 with ActivityOptionsCompat

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());
}
Also used : ActivityOptionsCompat(android.support.v4.app.ActivityOptionsCompat) OnClick(butterknife.OnClick)

Example 79 with ActivityOptionsCompat

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());
}
Also used : ActivityOptionsCompat(android.support.v4.app.ActivityOptionsCompat)

Example 80 with ActivityOptionsCompat

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());
}
Also used : Intent(android.content.Intent) ImageView(android.widget.ImageView) BindView(butterknife.BindView) View(android.view.View) TextView(android.widget.TextView) ActivityOptionsCompat(android.support.v4.app.ActivityOptionsCompat) Pair(android.support.v4.util.Pair)

Aggregations

ActivityOptionsCompat (android.support.v4.app.ActivityOptionsCompat)94 Intent (android.content.Intent)74 View (android.view.View)32 Pair (android.support.v4.util.Pair)18 RecyclerView (android.support.v7.widget.RecyclerView)15 Activity (android.app.Activity)14 ImageView (android.widget.ImageView)14 TextView (android.widget.TextView)13 OnClick (butterknife.OnClick)7 ActivityOptions (android.app.ActivityOptions)4 Context (android.content.Context)4 Bundle (android.os.Bundle)4 Handler (android.os.Handler)4 BindView (butterknife.BindView)4 CardView (android.support.v7.widget.CardView)3 Explode (android.transition.Explode)3 AdapterView (android.widget.AdapterView)3 LinearLayout (android.widget.LinearLayout)3 Uri (android.net.Uri)2 LayoutInflater (android.view.LayoutInflater)2