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 JugaListview No Longer Reacts To Onclick After A Call To Setselection()Custom Maps Marker Point With Picasso Not LoadedCan A Mobile App Which Supports An Mdm Work On Devices Which Do Not Run On MdmsTextView 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 postsAdd Item Only Once In Custom ArraylistArrayadapter, Listview, Creating And Updating ContentsAdding Object To ArraylistPassing Arraylist To Php Using Android Asynchronous Http Client Issue Post a Comment for "Converting String Into Textview?"