Commit 581aa6a7 by 石璀亮

feat(more):add a button more

1 parent e772c254
......@@ -12,34 +12,44 @@ import android.widget.TextView;
/**
* Created by st on 17-7-18.
* Function: Common Table.
*/
public class CommonTableActivity extends Activity {
public static String[][] mCpuData = {
{"口","类型","核数","最低频率","最高频率","状态"},
{"...","更多","","","",""},
};
public static String[][] mMemData = {
{"口","最大运行内存","最小运行内存","状态"},
{"...","更多","","","",""},
};
public static String[][] mStorageData = {
{"口","内部存储","状态"},
{"...","更多","","","",""},
};
public static String[][] mScreenData = {
{"口","高度","宽度","密度","状态"},
{"...","更多","","","",""},
};
public static String[][] mCameraData = {
{"口","前摄像头像素","后摄像头像素","视频质量","状态"},
{"...","更多","","","",""},
};
public static String[][] mOtherData = {
{"口","跑分","支持root","支持所有传感器","状态"},
{"...","更多","","","",""},
};
@Override
......@@ -130,7 +140,11 @@ public class CommonTableActivity extends Activity {
boolean isChecked) {
if (buttonView.isChecked()) {
if (unit_type.equals("cpu")){
if (buttonView.getId() == CommonTableActivity.mCpuData.length -1){
}else{
SystemSetting.handleCpuStatus(CommonTableActivity.mOtherData[buttonView.getId()]);
}
}else if (unit_type.equals("mem")){
SystemSetting.handleMemStatus(CommonTableActivity.mOtherData[buttonView.getId()]);
}else if (unit_type.equals("storage")) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!