Skip to content Skip to sidebar Skip to footer

Assign Arraylist Value To Textview

I'm trying to set the value from my arraylist to the textview ArrayList arrayListPage1, arrayListPage2, arrayListPage3, arrayListPage4, arrayListPage5; arra

Solution 1:

It happens because You set Integer value to Your TextView and TextView finds String from resources. Convert Your Integer value to String.

For example:

text1.setText(arrayListPage1.get(0).toString());

or simple:

text1.setText(arrayListPage1.get(0) + "");

Post a Comment for "Assign Arraylist Value To Textview"