How can i split a string by a newline which was taken as a input from a multiple line text box

i need to split the rinfo's element by new line is it good to do

Yes, just split at \n

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Why you need to split the text?
detailText param needs a String, but after you split the text, you got a List.

in my case the detailText contains some description of multi line. if i didn't split that text it increases the height of the element in that list. so, in order to maintain some specific height for every element in the list i have to split that text with "\n" to display

then you need to split the text first, then select the last one, but in your code, you are doing in the wrong order.

Table based layouts are awkward for narrow phone displays.

Consider using YAML Elements in a single Listview.