标签:dataset line 维数 ase bin 数据 content void apt
方法一:
方法二:
int arr[][] = new int[][] { { 1 }, { 1, 2 }, { 1, 2, 3 } };
for (int i = 0; i < arr.length; i++) {
int[] arr2 = arr[i];
for (int c = 0; c < arr2.length; c++) {
System.out.println(arr2[c]);
}
方法三:
item.bind(getData(position));
public String[] getData(int position) {
String[] a = new String[DATA[position].length];
for (int i = 0; i < DATA[position].length; i++) {
a[i] = DATA[position][i];
}
return a;
}
public void bind(String[] data) {
mData = data;
if (ciAdapter == null) {
ciAdapter = new ChooseItemAdapter();
grid.setAdapter(ciAdapter);
} else {
ciAdapter.notifyDataSetChanged();
}
text.setText(mData[0]); //最后得出text
}
标签:dataset line 维数 ase bin 数据 content void apt
原文地址:http://www.cnblogs.com/dubo-/p/7816947.html