Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
system_info
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 581aa6a7
authored
Jul 19, 2017
by
石璀亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(more):add a button more
1 parent
e772c254
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
app/src/main/java/com/nbbsw/cuiliang/systemsetting/CommonTableActivity.java
app/src/main/java/com/nbbsw/cuiliang/systemsetting/CommonTableActivity.java
View file @
581aa6a
...
@@ -12,34 +12,44 @@ import android.widget.TextView;
...
@@ -12,34 +12,44 @@ import android.widget.TextView;
/**
/**
* Created by st on 17-7-18.
* Created by st on 17-7-18.
* Function: Common Table.
*/
*/
public
class
CommonTableActivity
extends
Activity
{
public
class
CommonTableActivity
extends
Activity
{
public
static
String
[][]
mCpuData
=
{
public
static
String
[][]
mCpuData
=
{
{
"口"
,
"类型"
,
"核数"
,
"最低频率"
,
"最高频率"
,
"状态"
},
{
"口"
,
"类型"
,
"核数"
,
"最低频率"
,
"最高频率"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
public
static
String
[][]
mMemData
=
{
public
static
String
[][]
mMemData
=
{
{
"口"
,
"最大运行内存"
,
"最小运行内存"
,
"状态"
},
{
"口"
,
"最大运行内存"
,
"最小运行内存"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
public
static
String
[][]
mStorageData
=
{
public
static
String
[][]
mStorageData
=
{
{
"口"
,
"内部存储"
,
"状态"
},
{
"口"
,
"内部存储"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
public
static
String
[][]
mScreenData
=
{
public
static
String
[][]
mScreenData
=
{
{
"口"
,
"高度"
,
"宽度"
,
"密度"
,
"状态"
},
{
"口"
,
"高度"
,
"宽度"
,
"密度"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
public
static
String
[][]
mCameraData
=
{
public
static
String
[][]
mCameraData
=
{
{
"口"
,
"前摄像头像素"
,
"后摄像头像素"
,
"视频质量"
,
"状态"
},
{
"口"
,
"前摄像头像素"
,
"后摄像头像素"
,
"视频质量"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
public
static
String
[][]
mOtherData
=
{
public
static
String
[][]
mOtherData
=
{
{
"口"
,
"跑分"
,
"支持root"
,
"支持所有传感器"
,
"状态"
},
{
"口"
,
"跑分"
,
"支持root"
,
"支持所有传感器"
,
"状态"
},
{
"..."
,
"更多"
,
""
,
""
,
""
,
""
},
};
};
@Override
@Override
...
@@ -130,7 +140,11 @@ public class CommonTableActivity extends Activity {
...
@@ -130,7 +140,11 @@ public class CommonTableActivity extends Activity {
boolean
isChecked
)
{
boolean
isChecked
)
{
if
(
buttonView
.
isChecked
())
{
if
(
buttonView
.
isChecked
())
{
if
(
unit_type
.
equals
(
"cpu"
)){
if
(
unit_type
.
equals
(
"cpu"
)){
SystemSetting
.
handleCpuStatus
(
CommonTableActivity
.
mOtherData
[
buttonView
.
getId
()]);
if
(
buttonView
.
getId
()
==
CommonTableActivity
.
mCpuData
.
length
-
1
){
}
else
{
SystemSetting
.
handleCpuStatus
(
CommonTableActivity
.
mOtherData
[
buttonView
.
getId
()]);
}
}
else
if
(
unit_type
.
equals
(
"mem"
)){
}
else
if
(
unit_type
.
equals
(
"mem"
)){
SystemSetting
.
handleMemStatus
(
CommonTableActivity
.
mOtherData
[
buttonView
.
getId
()]);
SystemSetting
.
handleMemStatus
(
CommonTableActivity
.
mOtherData
[
buttonView
.
getId
()]);
}
else
if
(
unit_type
.
equals
(
"storage"
))
{
}
else
if
(
unit_type
.
equals
(
"storage"
))
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment