title: How to show three dots at the end of text view
body: <p>I have a text view under card view I want to how three dots at the end of text view when text is long enough.</p>
  
  <p>I have tried adding below lines in my text view but could not help me.</p>
  
  <pre><code>android:singleLine="true"
  android:maxLines="1"
  android:ellipsize="end"  
  </code></pre>
  
  <p><strong>Screenshot</strong></p>
  
  <p><a href="https://i.stack.imgur.com/xOaHX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xOaHX.jpg" alt="enter image description here"></a></p>
  
  <p>This is my layout below:</p>
  
  <pre><code> &lt;androidx.cardview.widget.CardView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:cardBackgroundColor="#fff"
      app:cardCornerRadius="3dp"
      app:contentPadding="3dp"
      app:cardUseCompatPadding="true"&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;ImageView
              android:id="@+id/homeBookImage"
              android:layout_width="120dp"
              android:layout_height="150dp"
              android:layout_marginEnd="232dp"
              android:layout_marginRight="232dp"
              android:scaleType="fitXY"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="0.0"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent"
              app:layout_constraintVertical_bias="0.0" /&gt;
  
           &lt;TextView
              android:id="@+id/homeBookName"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginStart="8dp"
              android:layout_marginLeft="8dp"
              android:text=""
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="0.0"
              app:layout_constraintStart_toEndOf="@+id/homeBookImage"
              app:layout_constraintTop_toTopOf="parent"
              app:layout_constraintVertical_bias="0.0"
              android:singleLine="true"
              android:maxLines="1"
              android:ellipsize="end"/&gt;
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  
      &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>
  
  <p>Someone please let me know how can I achieve desired layout. Any help would be appreciated.</p>
  
  <p><strong>THANKS</strong>  </p>