|
@@ -2349,25 +2349,25 @@ public class SensorTest extends AppCompatActivity
|
|
|
//控制列数
|
|
|
for (int col = 0; col < colnum + 1; col++) {
|
|
|
|
|
|
- TextView textView = new TextView(mContext);
|
|
|
- GridLayout.LayoutParams params = new GridLayout.LayoutParams();
|
|
|
+ //TextView textView = new TextView(mContext);
|
|
|
+ //GridLayout.LayoutParams params = new GridLayout.LayoutParams();
|
|
|
|
|
|
if (col == 0) {
|
|
|
- dv = Integer.toString(row);
|
|
|
+ //dv = Integer.toString(row);
|
|
|
} else {
|
|
|
|
|
|
- dv = Integer.toString(datatemp[i]);
|
|
|
+ //dv = Integer.toString(datatemp[i]);
|
|
|
|
|
|
//if ((bypDrvShortFlag[col - 1] == 0x55) || (bypSenShortFlag[row] == 0x55)) {
|
|
|
// textView.setTextColor(Color.parseColor("#FF0000")); //红色
|
|
|
//}
|
|
|
|
|
|
if (byOverMaxCount[i] > 2) { //最大值
|
|
|
- textView.setTextColor(Color.parseColor("#FF0000")); //红色
|
|
|
+ //textView.setTextColor(Color.parseColor("#FF0000")); //红色
|
|
|
strSaveRawDataTestFlagArray += Integer.toString(0xFF) + ",";
|
|
|
}
|
|
|
else if (byLessMinCount[i] > 2) { //最小值
|
|
|
- textView.setTextColor(Color.parseColor("#FFFF00")); //黄色
|
|
|
+ //textView.setTextColor(Color.parseColor("#FFFF00")); //黄色
|
|
|
strSaveRawDataTestFlagArray += Integer.toString(0xFF) + ",";
|
|
|
}
|
|
|
else
|
|
@@ -2375,16 +2375,16 @@ public class SensorTest extends AppCompatActivity
|
|
|
strSaveRawDataTestFlagArray += Integer.toString(0 & 0xFF) + ",";
|
|
|
}
|
|
|
|
|
|
- params.width = 50;
|
|
|
+ //params.width = 50;
|
|
|
|
|
|
i++;
|
|
|
}
|
|
|
- if (bTestMaxResult == false || bTestMinResult == false) {
|
|
|
- textView.setText(dv);
|
|
|
- textView.setGravity(Gravity.CENTER);
|
|
|
- params.setMargins(2, 1, 2, 1);
|
|
|
- textGridLayout.addView(textView, params);
|
|
|
- }
|
|
|
+ //if (bTestMaxResult == false || bTestMinResult == false) {
|
|
|
+ // textView.setText(dv);
|
|
|
+ // textView.setGravity(Gravity.CENTER);
|
|
|
+ // params.setMargins(2, 1, 2, 1);
|
|
|
+ // textGridLayout.addView(textView, params);
|
|
|
+ //}
|
|
|
}
|
|
|
strSaveRawDataTestFlagArray += "\n";
|
|
|
}
|