Skip to content

Instantly share code, notes, and snippets.

@Kolyall
Last active November 13, 2019 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kolyall/ae296d510b8950d25ba5b6d1d7c179f2 to your computer and use it in GitHub Desktop.
Save Kolyall/ae296d510b8950d25ba5b6d1d7c179f2 to your computer and use it in GitHub Desktop.
TextView patterns

TextView:

  1. Max Length with ellipsize at end
  2. Clear focus from EditText after open a screen
<TextView
android:ellipsize="end"
android:maxLength="12"/>
<TextView
android:focusable="true"
android:focusableInTouchMode="true"
android:focusedByDefault="true">
<requestFocus/>
</TextView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment