Android dynamically created table - bad performance
问题 i would like you to help me. I want to create dynamicly table (screenshot). I created it via code below: TableLayout tl = (TableLayout) findViewById(R.id.main_table); FOR. 1-300......... TableRow tr_head = new TableRow(this); tr_head.setId(10); tr_head.setBackgroundColor(Color.CYAN); tr_head.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); RelativeLayout rl = new RelativeLayout(this); rl.setId(20); ImageButton xyz = new ImageButton(this); xyz.setId(21);