I have the following TextView
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="3"
android:text="Large text"
android:ellipsize="end" />
When I calling textView.getLineCount()
I always get 3
. But I want to get "Real number of lines" which hidden because I'm using maxLines
. How can I do that?