title: Expanding cardView with a TextView on click
body: <p>I wanna expand my CardView on click with a little animation, and show rest of the TextView.</p>
  
  <p>This is my .xml file</p>
  
  <pre><code>&lt;LinearLayout android:id="@+id/yolo"
            xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:card_view="http://schemas.android.com/apk/res-auto"
            xmlns:tools="http://schemas.android.com/tools"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"&gt;
  
  
  &lt;!-- A CardView that contains a TextView --&gt;
  &lt;android.support.v7.widget.CardView
      android:id="@+id/card_view1"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:layout_marginBottom="10dp"
      android:layout_marginEnd="20dp"
      android:layout_marginStart="20dp"
      android:layout_marginTop="10dp"
      android:longClickable="true"
      android:orientation="vertical"
      card_view:cardCornerRadius="4dp"
      card_view:cardElevation="4dp"
      card_view:cardUseCompatPadding="true"
      card_view:contentPadding="10dp"
      &gt;
  
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    xmlns:card_view="http://schemas.android.com/apk/res-auto"
                    xmlns:tools="http://schemas.android.com/tools"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/info_text"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FF4444"
              android:maxLines="1"
              android:text="Did you know? Arnold Schwarzennegger was born in the Austria, Europe. "
              android:textAlignment="center"
              android:textSize="24sp"
              /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;android.support.v7.widget.CardView
      android:id="@+id/card_view2"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:layout_marginBottom="10dp"
      android:layout_marginEnd="20dp"
      android:layout_marginStart="20dp"
      android:layout_marginTop="10dp"
      android:longClickable="true"
      android:orientation="vertical"
      card_view:cardCornerRadius="4dp"
      card_view:cardElevation="4dp"
      card_view:cardUseCompatPadding="true"
      card_view:contentPadding="10dp"
      &gt;
  
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    xmlns:card_view="http://schemas.android.com/apk/res-auto"
                    xmlns:tools="http://schemas.android.com/tools"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/info_text2"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:maxLines="1"
              android:text="Did you know? Arnold Schwarzennegger was born in the Austria, Europe. "
              android:textAlignment="center"
              android:textColor="#FF4444"
              android:textSize="24sp"
              /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;android.support.v7.widget.CardView
      android:id="@+id/card_view3"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:layout_marginBottom="10dp"
      android:layout_marginEnd="20dp"
      android:layout_marginStart="20dp"
      android:layout_marginTop="10dp"
      android:longClickable="true"
      android:orientation="vertical"
      card_view:cardCornerRadius="4dp"
      card_view:cardElevation="4dp"
      card_view:cardUseCompatPadding="true"
      card_view:contentPadding="10dp"
      &gt;
  
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    xmlns:card_view="http://schemas.android.com/apk/res-auto"
                    xmlns:tools="http://schemas.android.com/tools"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/info_text3"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:maxLines="1"
              android:text="Did you know? Arnold Schwarzennegger was born in the Austria, Europe. "
              android:textAlignment="center"
              android:textColor="#FF4444"
              android:textSize="24sp"
              /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;android.support.v7.widget.CardView
      android:id="@+id/card_view"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:layout_marginBottom="10dp"
      android:layout_marginEnd="20dp"
      android:layout_marginStart="20dp"
      android:layout_marginTop="10dp"
      android:longClickable="true"
      android:orientation="vertical"
      card_view:cardCornerRadius="4dp"
      card_view:cardElevation="4dp"
      card_view:cardUseCompatPadding="true"
      card_view:contentPadding="10dp"
      &gt;
  
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    xmlns:card_view="http://schemas.android.com/apk/res-auto"
                    xmlns:tools="http://schemas.android.com/tools"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/info_et"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:maxLines="1"
              android:text="Did you know? Arnold Schwarzennegger was born in the Austria, Europe. "
              android:textAlignment="center"
              android:textColor="#FF4444"
              android:textSize="24sp"
              /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p></p>
  
  <p>And this is how it looks. I want to make it expand so you can see other information in TextView with a little animation of expanding.</p>
  
  <p><a href="https://i.stack.imgur.com/SQrly.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SQrly.jpg" alt="enter image description here"></a></p>