예제 #1
0
 private void setColumnWidth(int columnWidth) {
   listView.setRequestedColumnWidth(Utils.dpToPx(this, columnWidth));
   listView.determineColumns();
   listView.setAdapter(getNewAdapter());
 }
예제 #2
0
 private void setNumColumns(int numColumns) {
   listView.setRequestedColumnCount(numColumns);
   listView.determineColumns();
   listView.setAdapter(getNewAdapter());
 }