Converting String Into Textview? September 25, 2023 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 JugaCan A Mobile App Which Supports An Mdm Work On Devices Which Do Not Run On MdmsNoclassdeffounderror On Calligraphy LibraryProtect Android Application From PiracyTextView 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 postsAndroid: Issue During Arraylist DeclarationArraylist Add To New RecyclerviewAdding Data To An Array ListHow To Convert A Map Into Arraylist From Firestore Document Post a Comment for "Converting String Into Textview?"