J'utilise TextView
suivant pour afficher des données qu'il contient:Comment insérer du texte sur la ligne suivante dans un TextView Android?
<TextView android:id="@+id/notificationText"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textSize="18sp"
android:inputType="textMultiLine"
android:maxLines="2"
android:layout_paddingRight="20dip"
android:textColor="#ffffff"/>
Je veux envelopper le texte à la ligne suivante. Comment puis-je faire ceci?
peut-on le faire pendant l'exécution? – Ewoks
@Ewoks vérifier [setHorizontallyScrolling] (http://developer.android.com/reference/android/widget/TextView.html#setHorizontallyScrolling (booléen)) –
le texte est coupé au lieu d'aller à la ligne suivante –