How to display multiline from array list in single TextView?
<TextView
android:id="@+id/kbpViewTvCustNm"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="8dp"
android:lines="4"
android:textIsSelectable="false" />
Use a StringBuilder to make your array 1 String and append linebreaks in between the individual Strings like this:
StringBuilder builder = new StringBuilder();
for (String details : list2) {
builder.append(details + "\n");
}
custName.setText(builder.toString());