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 216ba637
authored
Aug 02, 2017
by
石璀亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(font):change chinese into xml
1 parent
135931ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
10 deletions
.idea/misc.xml
.idea/vcs.xml
app/src/main/java/com/nbbsw/cuiliang/systemsetting/ProductModelActivity.java
app/src/main/java/com/nbbsw/cuiliang/systemsetting/SettingActivity.java
app/src/main/res/values/strings.xml
.idea/misc.xml
View file @
216ba63
...
...
@@ -37,7 +37,7 @@
<ConfirmationsSetting
value=
"0"
id=
"Add"
/>
<ConfirmationsSetting
value=
"0"
id=
"Remove"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
.idea/vcs.xml
0 → 100644
View file @
216ba63
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app/src/main/java/com/nbbsw/cuiliang/systemsetting/ProductModelActivity.java
View file @
216ba63
...
...
@@ -76,7 +76,7 @@ public class ProductModelActivity extends AppCompatActivity {
final
String
[]
arrayFruit
=
new
String
[]
{
"4G"
,
"3G"
,
"2G"
};
Dialog
alertDialog
=
new
AlertDialog
.
Builder
(
this
).
setTitle
(
"选择型号"
).
setTitle
(
R
.
string
.
alert_type
).
setIcon
(
R
.
drawable
.
ic_launcher
)
.
setSingleChoiceItems
(
arrayFruit
,
0
,
new
DialogInterface
.
OnClickListener
()
{
...
...
@@ -85,14 +85,14 @@ public class ProductModelActivity extends AppCompatActivity {
ProductModelActivity
.
mSelectedType
=
which
;
}
}).
setPositiveButton
(
"确认"
,
new
DialogInterface
.
OnClickListener
()
{
setPositiveButton
(
R
.
string
.
alert_sure
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
EditText
modelType
=
(
EditText
)
findViewById
(
R
.
id
.
model_type
);
modelType
.
setText
(
arrayFruit
[
ProductModelActivity
.
mSelectedType
]);
}
}).
setNegativeButton
(
"取消"
,
new
DialogInterface
.
OnClickListener
()
{
setNegativeButton
(
R
.
string
.
alert_cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
...
...
app/src/main/java/com/nbbsw/cuiliang/systemsetting/SettingActivity.java
View file @
216ba63
...
...
@@ -42,17 +42,17 @@ public class SettingActivity extends AppCompatActivity {
private
void
settingTrue
()
{
Dialog
alertDialog
=
new
AlertDialog
.
Builder
(
this
).
setTitle
(
"警告"
).
setTitle
(
R
.
string
.
alert_warn
).
setMessage
(
R
.
string
.
setting_true_introduce
).
setIcon
(
R
.
drawable
.
ic_launcher
).
setPositiveButton
(
"确定"
,
new
DialogInterface
.
OnClickListener
()
{
setPositiveButton
(
R
.
string
.
alert_sure
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
SystemSetting
.
restoreSettingTrue
();
}
}).
setNegativeButton
(
"取消"
,
new
DialogInterface
.
OnClickListener
()
{
setNegativeButton
(
R
.
string
.
alert_cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
...
...
@@ -65,17 +65,17 @@ public class SettingActivity extends AppCompatActivity {
private
void
settingReset
()
{
Dialog
alertDialog
=
new
AlertDialog
.
Builder
(
this
).
setTitle
(
"警告"
).
setTitle
(
R
.
string
.
alert_warn
).
setMessage
(
R
.
string
.
setting_reset_introduce
).
setIcon
(
R
.
drawable
.
ic_launcher
).
setPositiveButton
(
"确定"
,
new
DialogInterface
.
OnClickListener
()
{
setPositiveButton
(
R
.
string
.
alert_sure
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
SystemSetting
.
resetSetting
();
}
}).
setNegativeButton
(
"取消"
,
new
DialogInterface
.
OnClickListener
()
{
setNegativeButton
(
R
.
string
.
alert_cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
...
...
app/src/main/res/values/strings.xml
View file @
216ba63
...
...
@@ -37,5 +37,9 @@
<string
name=
"header_other_model"
>
产品型号
</string>
<string
name=
"input_tip_num"
>
请输入正确的数值
</string>
<string
name=
"input_tip_type"
>
请输入正确的类型
</string>
<string
name=
"alert_warn"
>
警告
</string>
<string
name=
"alert_sure"
>
确定
</string>
<string
name=
"alert_cancel"
>
取消
</string>
<string
name=
"alert_type"
>
选择型号
</string>
</resources>
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