Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_fiveworld
Commits
56f38c26
Commit
56f38c26
authored
Nov 12, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页展示文字样式
parent
a2ac6233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
MainFragment.kt
...main/java/com/mints/fiveworld/ui/fragment/MainFragment.kt
+8
-4
No files found.
app/src/main/java/com/mints/fiveworld/ui/fragment/MainFragment.kt
View file @
56f38c26
...
...
@@ -109,13 +109,15 @@ class MainFragment : BaseFragment(), View.OnClickListener {
}
val
appWhite
=
AppSwitchUtil
.
getAppWhite
(
requireContext
())
if
(
appWhite
.
size
>
0
&&
!
TextUtils
.
isEmpty
(
appWhite
[
0
]))
{
LogUtil
.
d
(
appWhite
.
toString
())
if
(
appWhite
.
isNotEmpty
()
&&
appWhite
.
size
>
1
)
{
tvSark
.
text
=
SpanUtils
()
.
append
(
"已上锁\n"
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setForegroundColor
(
Color
.
WHITE
)
.
append
(
""
+
appWhite
.
size
+
"个"
)
.
setForegroundColor
(
Color
.
RED
)
.
setForegroundColor
(
Color
.
WHITE
)
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
}
else
{
...
...
@@ -132,7 +134,8 @@ class MainFragment : BaseFragment(), View.OnClickListener {
.
setForegroundColor
(
Color
.
WHITE
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
append
(
AppConfig
.
lastSpeedData
)
.
setForegroundColor
(
Color
.
RED
)
.
setForegroundColor
(
Color
.
WHITE
)
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
}
...
...
@@ -150,7 +153,8 @@ class MainFragment : BaseFragment(), View.OnClickListener {
.
setForegroundColor
(
Color
.
WHITE
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
append
(
"${AppConfig.lastCoolData}℃"
)
.
setForegroundColor
(
Color
.
RED
)
.
setForegroundColor
(
Color
.
WHITE
)
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment