In an Android ListView, is there a maximum length that a node in the ListView can handle?
I am inflating an XML-file into a ListView, and in certain cases, the data coming into it may be rather large…
I could perhaps truncate the data and allow the user to click on the item and bring up the full text in a separate view, but what is the max length it can handle?
The
ListViewis populated in the memory of the device. In yourListAdapter-class you specify the input for the list.I can only guess but I think, for one item, it can print as much as a String can hold. Depending on how many full Strings can be placed in the Memory of your Device/Emulator, you’ll get some kind of Overflow I guess.
But a
ListViewis meant to show a lot of short data and redirect to the full data (like you said with the extra Activity). Also I don’t think this will look good at all.