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
673a7ea4
Commit
673a7ea4
authored
Nov 12, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新问题样式
parent
18392995
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
MainFragment.kt
...main/java/com/mints/fiveworld/ui/fragment/MainFragment.kt
+8
-11
colors.xml
app/src/main/res/values/colors.xml
+1
-0
No files found.
app/src/main/java/com/mints/fiveworld/ui/fragment/MainFragment.kt
View file @
673a7ea4
...
@@ -7,12 +7,12 @@ import android.os.Bundle
...
@@ -7,12 +7,12 @@ import android.os.Bundle
import
android.text.TextUtils
import
android.text.TextUtils
import
android.view.View
import
android.view.View
import
android.widget.FrameLayout
import
android.widget.FrameLayout
import
androidx.core.content.ContextCompat
import
com.mints.cleaner.ui.activitys.appswitch.AppSwitchUtil
import
com.mints.cleaner.ui.activitys.appswitch.AppSwitchUtil
import
com.mints.fiveworld.R
import
com.mints.fiveworld.R
import
com.mints.fiveworld.ad.AdReportManager
import
com.mints.fiveworld.ad.AdReportManager
import
com.mints.fiveworld.ad.express.ExpressAdCallback
import
com.mints.fiveworld.ad.express.ExpressAdCallback
import
com.mints.fiveworld.ad.express.ExpressManager
import
com.mints.fiveworld.ad.express.ExpressManager
import
com.mints.fiveworld.ad.express.InHomeWifiExpress
import
com.mints.fiveworld.ad.half.NewInSceneFull
import
com.mints.fiveworld.ad.half.NewInSceneFull
import
com.mints.fiveworld.common.AppConfig
import
com.mints.fiveworld.common.AppConfig
import
com.mints.fiveworld.common.Constant
import
com.mints.fiveworld.common.Constant
...
@@ -116,14 +116,13 @@ class MainFragment : BaseFragment(), View.OnClickListener {
...
@@ -116,14 +116,13 @@ class MainFragment : BaseFragment(), View.OnClickListener {
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
Color
.
WHITE
)
.
append
(
""
+
appWhite
.
size
+
"个"
)
.
append
(
""
+
appWhite
.
size
+
"个"
)
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
ContextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
))
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
.
create
()
}
else
{
}
else
{
tvSark
.
text
=
SpanUtils
()
tvSark
.
text
=
SpanUtils
()
.
append
(
"保险柜"
)
.
append
(
"保险柜"
)
.
setForegroundColor
(
Co
lor
.
RED
)
.
setForegroundColor
(
Co
ntextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
)
)
.
create
()
.
create
()
}
}
...
@@ -134,15 +133,14 @@ class MainFragment : BaseFragment(), View.OnClickListener {
...
@@ -134,15 +133,14 @@ class MainFragment : BaseFragment(), View.OnClickListener {
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
Color
.
WHITE
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
append
(
AppConfig
.
lastSpeedData
)
.
append
(
AppConfig
.
lastSpeedData
)
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
ContextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
))
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
.
create
()
}
}
}
else
{
}
else
{
tvSpeedTest
.
text
=
SpanUtils
()
tvSpeedTest
.
text
=
SpanUtils
()
.
append
(
"待测速"
)
.
append
(
"待测速"
)
.
setForegroundColor
(
Co
lor
.
RED
)
.
setForegroundColor
(
Co
ntextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
)
)
.
create
()
.
create
()
}
}
...
@@ -153,22 +151,21 @@ class MainFragment : BaseFragment(), View.OnClickListener {
...
@@ -153,22 +151,21 @@ class MainFragment : BaseFragment(), View.OnClickListener {
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
Color
.
WHITE
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
append
(
"${AppConfig.lastCoolData}℃"
)
.
append
(
"${AppConfig.lastCoolData}℃"
)
.
setForegroundColor
(
Color
.
WHITE
)
.
setForegroundColor
(
ContextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
))
// .setForegroundColor(Color.RED)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
create
()
.
create
()
}
}
}
else
{
}
else
{
tvCool
.
text
=
SpanUtils
()
tvCool
.
text
=
SpanUtils
()
.
append
(
"待降温"
)
.
append
(
"待降温"
)
.
setForegroundColor
(
Co
lor
.
RED
)
.
setForegroundColor
(
Co
ntextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
)
)
.
create
()
.
create
()
}
}
if
(
TimeRender
.
isOverspedMin2
(
WifiDataManager
.
getFakeSaveCheckTime
(),
3
))
{
if
(
TimeRender
.
isOverspedMin2
(
WifiDataManager
.
getFakeSaveCheckTime
(),
3
))
{
tvSafeCheck
.
text
=
SpanUtils
()
tvSafeCheck
.
text
=
SpanUtils
()
.
append
(
"待检测"
)
.
append
(
"待检测"
)
.
setForegroundColor
(
Co
lor
.
RED
)
.
setForegroundColor
(
Co
ntextCompat
.
getColor
(
requireContext
(),
R
.
color
.
color_FE3B77
)
)
.
create
()
.
create
()
}
else
{
}
else
{
tvSafeCheck
.
text
=
SpanUtils
()
tvSafeCheck
.
text
=
SpanUtils
()
...
...
app/src/main/res/values/colors.xml
View file @
673a7ea4
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
<color
name=
"black_15"
>
#2D000000
</color>
<color
name=
"black_15"
>
#2D000000
</color>
<color
name=
"color_00072D"
>
#00072D
</color>
<color
name=
"color_00072D"
>
#00072D
</color>
<color
name=
"color_1E283C"
>
#1E283C
</color>
<color
name=
"color_1E283C"
>
#1E283C
</color>
<color
name=
"color_FE3B77"
>
#FE3B77
</color>
<color
name=
"dd_win_bg"
>
#8000
</color>
<color
name=
"dd_win_bg"
>
#8000
</color>
...
...
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