for (int row = 0; row < 10; row++) { LinearLayout ll = new LinearLayout(this); ll.setLayoutParams(...); ll.setOrientation(LinearLayout.HORIZONTAL); for (int col = 0; col < 4; col++) { TextView tv = new TextView(this); tv.setLayoutParams(....); ll.addView(tv); }
for (int row = 0; row < 10; row++) {
LinearLayout ll = new LinearLayout(this);
ll.setLayoutParams(...);
ll.setOrientation(LinearLayout.HORIZONTAL);
for (int col = 0; col < 4; col++) {
TextView tv = new TextView(this);
tv.setLayoutParams(....);
ll.addView(tv);
}
스크롤뷰.addView(tv);
}
이런식으로 하면 되지않나요?