Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi frnds
i want to write multiline text in single text view how it is done ??
thank u ...
Posted

In your xml file, locate the TextView element

HTML
<textview>
    ...
    android:singleLine="false"
    android:minLines="1"
    ...
    />
</textview>

This will set the minimum number of lines to one, and also flag that the textview is not a single line. To set the maximum number of lines, use android:maxLines and for a specific number of lines, use android:lines attributes of the TextView element.

P.S
If you find this useful, or if it helps you meet your objective, consider to mark it as the accepted answer for anyone else interested.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900