title: Implementing makeSceneTransationAnimation in Android
body: <p>I want to create transition animation for preveiwing picture like whatsapp or telegram, and i found very userful <a href="https://android.jlelse.eu/easy-android-shared-element-transition-ac36952a4a4" rel="nofollow noreferrer">transition</a> tutorial but i get stuck to implement in my apps. I start activity with this</p>
  
  <pre><code>ivProfile.setOnClickListener(v -&gt; ImagePreview.start(context, contactResponse.getProfilePic()));
  </code></pre>
  
  <p>how to implement that code above in to action click below:</p>
  
  <pre><code>public void animate(View v){
      Intent i = new Intent(this, ImagePreview.class);
      String transition = getString(R.string.transition);
      View start = findViewById(R.id.iv_profile);
      ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(
              this, start, transition
          );
      ActivityCompat.startActivity(this, i, options.toBundle());
  }
  </code></pre>