Skip to content

TextViews

César Ferreira edited this page Jun 25, 2014 · 2 revisions

TypeWriter

Java:

Typewriter textView = (Typewriter) rowView.findViewById(R.id.gridItemTextView);
textView.setCharacterDelay(60);
textView.animateText("some text that will animate");

XML:

    <quickutils.core.views.text.TypeWriter
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="something something"/>

Roboto's

The following textView can be used as:

  • RobotoTextView
  • RobotoBoldTextView
  • RobotoCondensedTextView
  • RobotoLightTextView
  • RobotoThinTextView
<quickutils.core.views.text.RobotoTextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="some text"/>

Size adjusting

This textView will adjust the text size to the space the textview has

<quickutils.core.views.text.SizeAdjustingTextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="bla bla bla" />
Clone this wiki locally