Commit 673a7ea4 authored by jyx's avatar jyx

更新问题样式

parent 18392995
...@@ -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(Color.RED) .setForegroundColor(ContextCompat.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(Color.RED) .setForegroundColor(ContextCompat.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(Color.RED) .setForegroundColor(ContextCompat.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(Color.RED) .setForegroundColor(ContextCompat.getColor(requireContext(),R.color.color_FE3B77))
.create() .create()
} else { } else {
tvSafeCheck.text = SpanUtils() tvSafeCheck.text = SpanUtils()
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment