优化字符串不统一问题

This commit is contained in:
yezhiqiu
2025-12-29 14:49:50 +08:00
parent 2bd26b81cb
commit 9a6df5bbc9
9 changed files with 31 additions and 14 deletions

View File

@@ -1 +1 @@
#Fri Nov 28 15:02:35 CST 2025 #Fri Dec 26 18:05:45 CST 2025

View File

@@ -604,12 +604,14 @@ open class AddAndEditFencesZoneBaseActivity :
fencesZoneCircleView.setColorAndImage( fencesZoneCircleView.setColorAndImage(
mContext, mContext,
R.color.select_color2, R.color.select_color2,
locationDrawableRes = R.drawable.icon_fences_zone_gps_green_svg locationDrawableRes = R.drawable.icon_fences_zone_gps_green_svg,
disTextColorRes = R.color.white
) )
fencesZoneRectView.setColorAndImage( fencesZoneRectView.setColorAndImage(
mContext, mContext,
R.color.select_color2, R.color.select_color2,
locationDrawableRes = R.drawable.icon_fences_zone_gps_green_svg locationDrawableRes = R.drawable.icon_fences_zone_gps_green_svg,
disTextColorRes = R.color.white
) )
fencesZonePolygonView.setColorAndImage( fencesZonePolygonView.setColorAndImage(
mContext, mContext,
@@ -620,12 +622,14 @@ open class AddAndEditFencesZoneBaseActivity :
fencesZoneCircleView.setColorAndImage( fencesZoneCircleView.setColorAndImage(
mContext, mContext,
R.color.select_color, R.color.select_color,
locationDrawableRes = R.drawable.icon_fences_zone_gps_svg locationDrawableRes = R.drawable.icon_fences_zone_gps_svg,
disTextColorRes = R.color.black
) )
fencesZoneRectView.setColorAndImage( fencesZoneRectView.setColorAndImage(
mContext, mContext,
R.color.select_color, R.color.select_color,
locationDrawableRes = R.drawable.icon_fences_zone_gps_svg locationDrawableRes = R.drawable.icon_fences_zone_gps_svg,
disTextColorRes = R.color.black
) )
fencesZonePolygonView.setColorAndImage( fencesZonePolygonView.setColorAndImage(
mContext, mContext,

View File

@@ -67,8 +67,11 @@ class ActivityV2Fragment :
ilSportActiveLayout.let { ilSportActiveLayout.let {
it.root.background = it.root.background =
ContextCompat.getDrawable(mContext!!, R.drawable.shape8_gray_yellow_bg) ContextCompat.getDrawable(mContext!!, R.drawable.shape8_gray_yellow_bg)
val tColor = ContextCompat.getColor(mContext!!, R.color.data_black_color)
it.ivSportTimeType.setImageResource(R.drawable.icon_active_time) it.ivSportTimeType.setImageResource(R.drawable.icon_active_time)
it.tvSportTimeTitle.text = getText(R.string.data_active_other_time) it.tvSportTimeTitle.text = getText(R.string.data_active_other_time)
it.tvSportTimeTitle.setTextColor(tColor)
it.tvSportTimeContent.setTextColor(tColor)
} }
//下拉刷新 //下拉刷新

View File

@@ -316,7 +316,8 @@ class FencesCircleView : View {
dashedColorRes: Int = 0, dashedColorRes: Int = 0,
fillBgColorRes: Int = 0, fillBgColorRes: Int = 0,
locationDrawableRes: Int = 0, locationDrawableRes: Int = 0,
zoomDrawableRes: Int = 0 zoomDrawableRes: Int = 0,
disTextColorRes: Int = 0
) { ) {
var isRefresh = false var isRefresh = false
if (dashedColorRes > 0) { if (dashedColorRes > 0) {
@@ -337,6 +338,10 @@ class FencesCircleView : View {
mZoomBitmap = ImageUtil.getBitmapFromDrawableAndSvg(context, zoomDrawableRes) mZoomBitmap = ImageUtil.getBitmapFromDrawableAndSvg(context, zoomDrawableRes)
isRefresh = true isRefresh = true
} }
if (disTextColorRes > 0) {
mTextPaint.color = ContextCompat.getColor(context, disTextColorRes)
isRefresh = true
}
if (isRefresh) invalidate() if (isRefresh) invalidate()
} }

View File

@@ -341,7 +341,7 @@ class FencesRectView : View {
locationDrawableRes: Int = 0, locationDrawableRes: Int = 0,
zoomDrawableRes: Int = 0, zoomDrawableRes: Int = 0,
dotDrawableRes: Int = 0, dotDrawableRes: Int = 0,
rotateDrawableRes: Int = 0 rotateDrawableRes: Int = 0,disTextColorRes: Int = 0
) { ) {
var isRefresh = false var isRefresh = false
if (dashedColorRes > 0) { if (dashedColorRes > 0) {
@@ -371,6 +371,10 @@ class FencesRectView : View {
mDotBitmap = ImageUtil.getBitmapFromDrawableAndSvg(context, dotDrawableRes) mDotBitmap = ImageUtil.getBitmapFromDrawableAndSvg(context, dotDrawableRes)
isRefresh = true isRefresh = true
} }
if (disTextColorRes > 0) {
mTextPaint.color = ContextCompat.getColor(context, disTextColorRes)
isRefresh = true
}
if (isRefresh) invalidate() if (isRefresh) invalidate()
} }

View File

@@ -8,19 +8,19 @@
android:pathData="M8,14.666C11.129,14.666 13.666,12.129 13.666,9C13.666,5.87 11.129,3.333 8,3.333C4.87,3.333 2.333,5.87 2.333,9C2.333,12.129 4.87,14.666 8,14.666Z" android:pathData="M8,14.666C11.129,14.666 13.666,12.129 13.666,9C13.666,5.87 11.129,3.333 8,3.333C4.87,3.333 2.333,5.87 2.333,9C2.333,12.129 4.87,14.666 8,14.666Z"
android:strokeLineJoin="round" android:strokeLineJoin="round"
android:fillColor="#00000000" android:fillColor="#00000000"
android:strokeColor="#0F1719"/> android:strokeColor="#ffffff"/>
<path <path
android:strokeWidth="1" android:strokeWidth="1"
android:pathData="M10.334,1.333H5.667" android:pathData="M10.334,1.333H5.667"
android:strokeLineJoin="round" android:strokeLineJoin="round"
android:fillColor="#00000000" android:fillColor="#00000000"
android:strokeColor="#0F1719" android:strokeColor="#ffffff"
android:strokeLineCap="round"/> android:strokeLineCap="round"/>
<path <path
android:strokeWidth="1" android:strokeWidth="1"
android:pathData="M8,6V9" android:pathData="M8,6V9"
android:strokeLineJoin="round" android:strokeLineJoin="round"
android:fillColor="#00000000" android:fillColor="#00000000"
android:strokeColor="#0F1719" android:strokeColor="#ffffff"
android:strokeLineCap="round"/> android:strokeLineCap="round"/>
</vector> </vector>

View File

@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/block_color3" /> <solid android:color="@color/gray_color12" />
<corners android:radius="@dimen/dp_8" /> <corners android:radius="@dimen/dp_8" />
</shape> </shape>

View File

@@ -19,7 +19,7 @@
android:layout_marginStart="@dimen/dp_4" android:layout_marginStart="@dimen/dp_4"
android:layout_toEndOf="@id/iv_sport_time_type" android:layout_toEndOf="@id/iv_sport_time_type"
android:text="@string/txt_resting_time" android:text="@string/txt_resting_time"
android:textColor="@color/select_color3" android:textColor="@color/white"
android:textSize="@dimen/textSize12" android:textSize="@dimen/textSize12"
app:typeface="@string/roboto_regular_font" /> app:typeface="@string/roboto_regular_font" />
@@ -28,6 +28,7 @@
style="@style/my_TextView_style_v2" style="@style/my_TextView_style_v2"
android:layout_below="@id/iv_sport_time_type" android:layout_below="@id/iv_sport_time_type"
android:text="00:00:00" android:text="00:00:00"
android:textColor="@color/white"
android:textStyle="bold" /> android:textStyle="bold" />
</RelativeLayout> </RelativeLayout>

View File

@@ -718,11 +718,11 @@
<string name="txt_renew_year2">per year)</string> <string name="txt_renew_year2">per year)</string>
<string name="txt_renews_on">Renews On:</string> <string name="txt_renews_on">Renews On:</string>
<string name="txt_power_saving_zone_tip">Adding where they live can improve battery and provide extra safety</string> <string name="txt_power_saving_zone_tip">Adding where they live can improve battery and provide extra safety</string>
<string name="txt_power_saving_zone">Establish Power saving Zone</string> <string name="txt_power_saving_zone">Establish WiFi Zone</string>
<string name="txt_permanent_residence_tip">Permanent residence saves power, enhances positioning.</string> <string name="txt_permanent_residence_tip">Permanent residence saves power, enhances positioning.</string>
<string name="txt_is_pet_home">Is this your pet\'s home?</string> <string name="txt_is_pet_home">Is this your pet\'s home?</string>
<string name="txt_permanent_residence">Permanent Residence</string> <string name="txt_permanent_residence">Permanent Residence</string>
<string name="txt_choose_wifi">Choose Wi-Fi network, no password needed.</string> <string name="txt_choose_wifi">Choose Wi-Fi network</string>
<string name="txt_later">Later</string> <string name="txt_later">Later</string>
<string name="txt_measurement_units_tip">What is your pet Measurement Units?</string> <string name="txt_measurement_units_tip">What is your pet Measurement Units?</string>
<string name="txt_your_height">Your pets height</string> <string name="txt_your_height">Your pets height</string>