title: text cropped android textView
body: <p>I got 4 textview, their size depends on guidelines, the placement of the guidelines is correct since it's already used all over the project. I tried many solutions but none of them helped me solving my problem. My text is always cropped, no matter the size of the screen, the font size or the text.</p>
  
  <p><a href="https://i.stack.imgur.com/D8cmz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D8cmz.png" alt="enter image description here"></a></p>
  
  <p>I looked for options that auto resize textfield text's font depending on the size of the container but it didn't worked for me.</p>
  
  <p>Here is the result I am looking for. </p>
  
  <p><a href="https://i.stack.imgur.com/HFrzZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HFrzZ.png" alt="enter image description here"></a>  </p>
  
  <p>those textviews are custom textview extending <code>android.support.v7.widget.AppCompatTextView</code> but no modification is done to the text itself so far.</p>
  
  <p>EDIT : here is my custom class</p>
  
  <pre><code>public class MyTextView extends android.support.v7.widget.AppCompatTextView {
      private Context context = null;
      private AttributeSet attrs = null;
  
  
      public MyTextView(Context context, AttributeSet attrs) {
          super(context, attrs);
  
          this.context = context;
          this.attrs = attrs;
  
          setWillNotDraw(false);
          setIncludeFontPadding(false);
      }
  
      @Override
      public void onSizeChanged (int w, int h, int oldw, int oldh){
          super.onSizeChanged(w, h, oldw, oldh);
      }
  
      @Override
      protected void onDraw(Canvas canvas) {
          super.onDraw(canvas);
      }
  }
  </code></pre>
  
  <p>here is the xml</p>
  
  <pre><code>&lt;android.support.constraint.Guideline
  android:id="@+id/TopOf"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="horizontal"
  app:layout_constraintGuide_percent="0.031200000000000002" /&gt;
                          &lt;android.support.constraint.Guideline
  android:id="@+id/StartOf"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  app:layout_constraintGuide_percent="0" /&gt;
                          &lt;android.support.constraint.Guideline
  android:id="@+id/BottomOf"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="horizontal"
  app:layout_constraintGuide_percent="0.9062" /&gt;
                          &lt;android.support.constraint.Guideline
  android:id="@+id/EndOf"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  app:layout_constraintGuide_percent="0.16477" /&gt;
                          &lt;com.customView.MyTextView
  android:id="@+id/MyTextView"
  android:fontFamily="roboto"
  
  android:text="Downloads" 
  android:textColor="#5d5d5d"
  android:textSize="8dp"
  app:autoSizeTextType="uniform"
  android:textStyle="bold"
  android:gravity="left"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  app:layout_constraintStart_toStartOf="@+id/StartOf"
  app:layout_constraintTop_toTopOf="@+id/TopOf"
  app:layout_constraintEnd_toEndOf="@+id/EndOf"
  app:layout_constraintBottom_toBottomOf="@+id/BottomOf" /&gt;
  </code></pre>