I am developing android apps so in that i want display the four lines of text in single text view. my Array list contain data like following
Customer Name : Nilesh
Customer Contact : 23230200
Customer City : Pune
but when I write code like following only last line was displayed from the array List
XML
<TextView android:id="@+id/kbpViewTvCustNm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="8dp"
android:lines="4"
android:textIsSelectable="false" />
code
for (String details : list2)
{
custName.setText(details);
}