title: Aligning TextView in CardView
body: <p>I'm trying to align multiple TextView items in a CardView. I'm going to use this CardView in my RecyclerView to display data. But this doesn't work for all screen size. First I'm showing some static labels and then a CardView to show real data. Below is the code for my layout file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
  
  &lt;TextView
      android:id="@+id/textView3"
      android:layout_width="75dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:background="@drawable/side_nav_bar"
      android:text="Name"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.0"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView12"
      android:layout_width="20dp"
      android:layout_height="wrap_content"
      android:layout_marginStart="20dp"
      android:layout_marginTop="16dp"
      android:background="@drawable/side_nav_bar"
      android:text="P"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintStart_toEndOf="@+id/textView3"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView13"
      android:layout_width="25dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:text="W"
      android:background="@drawable/side_nav_bar"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.073"
      app:layout_constraintStart_toEndOf="@+id/textView12"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView14"
      android:layout_width="20dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:text="L"
      android:background="@drawable/side_nav_bar"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.084"
      app:layout_constraintStart_toEndOf="@+id/textView13"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView15"
      android:layout_width="20dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:text="D"
      android:background="@drawable/side_nav_bar"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.112"
      app:layout_constraintStart_toEndOf="@+id/textView14"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView16"
      android:layout_width="35dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:background="@drawable/side_nav_bar"
      android:text="GD"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.092"
      app:layout_constraintStart_toEndOf="@+id/textView15"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;TextView
      android:id="@+id/textView17"
      android:layout_width="40dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="16dp"
      android:text="Pts"
      android:background="@drawable/side_nav_bar"
      android:textAlignment="center"
      android:textColor="#fff"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toEndOf="@+id/textView16"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;android.support.v7.widget.CardView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:layout_constraintTop_toBottomOf="@id/textView3"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      android:layout_marginStart="8dp"
      android:layout_marginEnd="8dp"
      android:layout_marginTop="10dp"&gt;
  
  
      &lt;TextView
          android:layout_width="80dp"
          android:layout_height="wrap_content"
          android:text="Wisdom High"
          android:textAlignment="center"
          android:textSize="16dp"
          android:id="@+id/table_team_name"
          /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="12"
          android:textSize="16dp"
          android:textAlignment="center"
          android:layout_marginLeft="95dp"
          android:id="@+id/played"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="0"
          android:textSize="16dp"
          android:textAlignment="center"
          android:layout_marginLeft="145dp"
          android:id="@+id/won"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="12"
          android:textSize="16dp"
          android:textAlignment="center"
          android:layout_marginLeft="185dp"
          android:id="@+id/lost"
          /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="0"
          android:textSize="16dp"
          android:textAlignment="center"
          android:layout_marginLeft="230dp"
          android:id="@+id/draw"
          /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="+12"
          android:textSize="16dp"
          android:textAlignment="center"
          android:layout_marginLeft="260dp"
          android:id="@+id/gd"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="12"
          android:textSize="16dp"
          android:layout_marginLeft="310dp"
          android:id="@+id/points"/&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p></p>
  
  <p>It doesn't work for all screen sizes.</p>