title: Count Down app Animation
body: <p>I am creating Countdown app. i finished all codes and its all working pretty fine but i am new to android animation. I need to apply below animation to my app. i tried use slide in/out but it is not working good i also tried few other animation but nothing is same as compared below animation.</p>
  
  <p>once play button pressed a timer starts then once again pressed a pause button comes and a <code>textView</code> under pause icon which we have current countdown time. if again pressed the count start again. I am only looking for animation all other codes i have already done.
  i have a <code>ImageButton</code> which shows icon each timer user press play/pause and <code>TextView</code> which shows countdown timer and another <code>TextView</code> which shows current timer when user press pause button.Is there anyway i can implement this animation to app?</p>
  
  <p>So Any help would be appropriated as i am new to android animations. Thanks!</p>
  
  <p>Here is xml:</p>
  
  <pre><code> &lt;FrameLayout
          android:layout_width="228dp"
          android:layout_height="228dp"
          android:layout_marginTop="7dp"
          android:layout_marginLeft="7dp"
          android:layout_marginRight="8dp"
          android:layout_marginBottom="8dp"
          android:id="@+id/circlea"
          android:visibility="visible"
  
          android:background="@drawable/circle"&gt;
  
   &lt;ImageButton
       android:layout_width="142dp"
       android:layout_height="142dp"
       android:layout_marginTop="43dp"
       android:layout_marginBottom="43dp"
       android:layout_marginLeft="43dp"
      android:id="@+id/play"
       android:background="#000"
       android:layout_marginRight="43dp"
       android:src="@mipmap/icon"
       android:visibility="visible" /&gt;
          &lt;TextView
              android:layout_width="134dp"
              android:layout_height="73dp"
              android:text=""
              android:textColor="#FFFFFF"
              android:textSize="55sp"
              android:layout_marginTop="78dp"
              android:layout_marginStart="48dp"
              android:id="@+id/countText"
              android:fontFamily="sans-serif-light"
              android:background="#000"
              android:visibility="invisible" /&gt;
          &lt;TextView
              android:layout_marginTop="180dp"
              android:layout_marginLeft="90dp"
              android:text=""
              android:id="@+id/pusetext"
              android:textSize="24sp"
              android:textColor="#1EFFFFFF"
              android:layout_width="61dp"
              android:layout_height="32dp" /&gt;
  
      &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>//some code
   super.onCreate(savedInstanceState);
  play=(ImageButton)findViewById(R.id.play);
  pausetext=(TextView) findViewById(R.id.pusetext);
  CountText=(TextView)findViewById(R.id.countText);
  play.OnClickListener startListener = new View.OnClickListener() {//first public void onClick( View v ){
   play.setVisibility(View.INVISIBLE);
   CountText.setVisibility(View.VISIBLE);
  
  ObjectAnimator slideDownAnimTextView = ObjectAnimator.ofFloat(CountText, "translationY", -(CountText.getTop() + CountText.getHeight()), 0);
              slideDownAnimTextView.start();
  }
  CountText.setOnClickListener
   public void onClick( View v ){//pause click
  play.setVisibility(View.VISIBLE);
  ObjectAnimator slideDownAnimPlayButton = ObjectAnimator.ofFloat(play, "translationY", -(play.getTop() + play.getHeight()), 0);
  
              ObjectAnimator scaleDownAnimTextViewX = ObjectAnimator.ofFloat(CountText, "scaleX", 1f, 0.5f);
              ObjectAnimator scaleDownAnimTextViewY = ObjectAnimator.ofFloat(CountText, "scaleY", 1f, 0.5f);
              AnimatorSet animatorSet = new AnimatorSet();
              animatorSet.setDuration(1000);
              animatorSet.playTogether(slideDownAnimPlayButton,scaleDownAnimTextViewX,scaleDownAnimTextViewY);
              animatorSet.start();
  }
   play.setOnClickListener
  public void onClick(View view) {resume click
  play.setVisibility(View.INVISIBLE);
              CountText.setVisibility(View.VISIBLE);
  }
  CountText.setOnClickListener(new View.OnClickListener() //pause click agine
                  @Override
                  public void onClick(View view) {
  
  //some code
  </code></pre>