Converting String Into Textview? February 21, 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 JugaChange The Intent Of Pendingintent Which Is Used By An AlarmmanagerUsing A Dll With C Interface In Java (for Android)How To Hide Keyboard On Dialog DismissTextView 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 postsHow Can I Initialize My Generic Array?Is It Possible To Add An Array Of Images To Canvas And Then Delete Them?Sort Android Apps Alphabetically?Arraylist Is A Raw Type. References To Generic Type Arraylist Should Be Parameterized Post a Comment for "Converting String Into Textview?"