I have this TextView
<TextView
style="@style/ellipsize"
android:text="@string/alphabet"
android:id="@+id/class_name"
android:layout_toRightOf="@id/is_alt"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<style name="ellipsize">
<item name="android:singleLine">true</item>
<item name="android:maxEms">5</item>m>
<item name="android:maxLength">5</item>
<item name="android:maxLines">1</item>
<item name="android:ellipsize">end</item>
</style>
However the text doesn't ellipsize, it just stops. E.g. the above give just abcde, rather than abcde...
What have I got wrong?