title: Android Cardview elements stack on top of each other
body: <p>I have a <code>cardview</code> layout like the one showed below, but both of the elements in my file stack on top of each other. I've read other posts that say to be able to space elements more efficiently you have to have another layout inside the <code>cardview</code>, but it's not working for me. If I add a <code>android:layout_above...</code> then one of the elements disappears. I want to one element above the other. Can anyone point out what I'm doing wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/JwJ3u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JwJ3u.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:id="@+id/currentData"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      card_view:cardCornerRadius="4dp"
      card_view:cardBackgroundColor="@color/orange"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/cardviewLayout"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:padding="10dp"
          android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/time"
              tools:text="this is the time"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:layout_above="@+id/temperature"
              android:textColor="@color/white"/&gt;
  
          &lt;TextView
              android:id="@+id/temperature"
              tools:text="50°"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:textSize="50sp" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>