Print out ArrayList content in Android TableLayout
问题 I have this ArrayList: ArrayList<Double> debtList = datasource.debtList; ArrayList<Double> feeList = datasource.feeList; How would I print out these two Lists side by side (formatting doesn't matter) in a TableLayout in a loop? Here is layout: TableLayout table = (TableLayout) findViewById(R.id.myTableLayout); 回答1: Ok, you have two arraylists debtList and feeList, I assume both the arraylist contains equal number of elements, now iterate through this list, Create Table Row add two textViews