Converting String Into Textview? May 24, 2024 Post a Comment Have a look at this code: ArrayList row = data.get(position); TextView idText = new TextView(this); idText.setText(row.get(0).toString()); tableRow.addView(idText);Solution 1: ///you did mistake while copy paste//idText using in all Tv let do it as belowBaca JugaPassing A List Through As A ParcelablearraylistHow To Get Position Of Arraylist In Own AdapterAndroid Spinner Populating Using ArraylistTextView idText = new TextView(this); idText.setText(row.get(0).toString()); tableRow.addView(idText); TextView storeText = new TextView(this); storeText.setText(row.get(1).toString()); tableRow.addView(storeText); TextView maggiText = new TextView(this); maggiText.setText(row.get(2).toString()); tableRow.addView(maggiText); CopySolution 2: ArrayList row = data.get(position);for(int i=0; i<row.size(); i++) { TextView text= new TextView(this); idText.setText(row.get(i).toString()); tableRow.addView(idText); } Copy Share You may like these postsError While Inflating Class Android.support.v7.widget.cardviewAndroid Launch From Eclipse Not Working Properly Without Error MessageAndroid Maps Gps OutlierMissing Table In Sqlite With Specific Version Of Htc Desire Hd Post a Comment for "Converting String Into Textview?"