Created
October 10, 2016 14:09
-
-
Save brescia123/c1f57df446ce68bba9294f54813b6c0f to your computer and use it in GitHub Desktop.
Layout properties needed to make TextView Ellipsize work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:ellipsize="end" | |
android:maxLines="1"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
N.B.: use
0dp
forlayout_width
and notwrap_content