<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
- <package name="java.util" withSubpackages="false" static="false" />
- <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" />
- <package name="io.ktor" withSubpackages="true" static="false" />
+ <package name="java.util" alias="false" withSubpackages="false" />
+ <package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
+ <package name="io.ktor" alias="false" withSubpackages="true" />
+ </value>
+ </option>
+ <option name="PACKAGES_IMPORT_LAYOUT">
+ <value>
+ <package name="" alias="false" withSubpackages="true" />
+ <package name="java" alias="false" withSubpackages="true" />
+ <package name="javax" alias="false" withSubpackages="true" />
+ <package name="kotlin" alias="false" withSubpackages="true" />
+ <package name="" alias="true" withSubpackages="true" />
</value>
</option>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
{
"type": "SINGLE",
"filters": [],
- "versionCode": 20,
- "versionName": "202102011414",
- "outputFile": "ICL02Temperature_V20_202102011414_release.apk"
+ "versionCode": 21,
+ "versionName": "202105311617",
+ "outputFile": "ICL02Temperature_V21_202105311617_release.apk"
}
]
}
\ No newline at end of file
+++ /dev/null
-package com.ic.temperature.utils
-
-import android.content.ComponentName
-import android.content.Context
-import android.content.Intent
-import android.content.ServiceConnection
-
-object ServiceUtil {
-
- fun startServiceUtil(context: Context, serviceAction: String?, packageName: String?) {
- val intent = getExplicitIntent(context, Intent(serviceAction))
- if (intent != null) {
- intent.setPackage(packageName)
- context.startService(intent)
- }
- }
-
- fun bindServiceUtil(
- context: Context,
- action: String?,
- connection: ServiceConnection?,
- pck: String?
- ) {
- val targetIntent = getExplicitIntent(context, Intent(action))
- if (targetIntent != null) {
- targetIntent.setPackage(pck)
- context.bindService(targetIntent, connection!!, Context.BIND_AUTO_CREATE)
- }
- }
-
- fun unBindServiceUtil(context: Context, connection: ServiceConnection?) {
- try {
- if (connection != null) {
- context.unbindService(connection)
- }
- } catch (e: Exception) {
- e.printStackTrace()
- }
- }
-
- private fun getExplicitIntent(context: Context, impl: Intent): Intent? {
- val resolveInfo = context.packageManager.queryIntentServices(impl, 0)
- if (resolveInfo.size != 1) return null
- val intent = Intent(impl)
- val info = resolveInfo[0].serviceInfo ?: return null
- intent.component = ComponentName(info.packageName, info.name)
- return intent
- }
-}
\ No newline at end of file
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@mipmap/qs_background"
tools:context=".AnimalHeatActivity">
<!--只有体温的时候显示,也就是只支持体温,不支持腕温和环境温度-->
app:amount="5"
app:animationDirection="left"
app:duration="@android:integer/config_mediumAnimTime"
- app:endColor="@color/teal_A200"
+ app:endColor="#2492F0"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:startColor="@color/lime_A400" />
+ app:startColor="#195180" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline10"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="@android:color/transparent"
- android:src="@drawable/ic_temp_wrist"
+ android:src="@mipmap/writst_temp_icon"
app:layout_constraintBottom_toTopOf="@+id/guideline15"
app:layout_constraintEnd_toStartOf="@+id/guideline11"
app:layout_constraintStart_toStartOf="@+id/guideline14" />
android:layout_height="70dp"
android:layout_marginBottom="32dp"
android:background="@android:color/transparent"
- android:src="@drawable/ic_temp_human"
+ android:src="@mipmap/body_temp_icon"
app:layout_constraintBottom_toTopOf="@+id/guideline12"
app:layout_constraintEnd_toStartOf="@+id/guideline11" />
android:layout_height="80dp"
android:layout_marginStart="8dp"
android:background="@android:color/transparent"
- android:src="@drawable/ic_temp_human"
+ android:src="@mipmap/body_temp_icon"
app:layout_constraintBottom_toTopOf="@+id/guideline2"
app:layout_constraintStart_toStartOf="@+id/guideline4" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@mipmap/qs_background"
- tools:context=".AnimalHeatActivity">
+ android:background="@mipmap/temperature_bg"
+ android:layout_height="match_parent">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:background="@android:color/transparent"
- android:src="@drawable/ic_temp_human"
+ android:src="@mipmap/body_temp_icon"
app:layout_constraintEnd_toStartOf="@+id/guideline7"
app:layout_constraintTop_toTopOf="parent" />
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:background="@android:color/transparent"
- android:src="@drawable/ic_temp_wrist"
+ android:src="@mipmap/writst_temp_icon"
android:visibility="@{disableWristTemp ? View.GONE : View.VISIBLE}"
app:layout_constraintEnd_toStartOf="@+id/guideline7"
app:layout_constraintTop_toTopOf="@+id/guideline" />
android:layout_height="50dp"
android:layout_marginEnd="20dp"
android:background="@android:color/transparent"
- android:src="@mipmap/outtemp"
+ android:src="@mipmap/evn_temp_icon"
android:visibility="@{disableEnvTemp ? View.GONE : View.VISIBLE}"
app:layout_constraintBottom_toTopOf="@+id/guideline6"
app:layout_constraintEnd_toStartOf="@+id/guideline7"
-#Mon Feb 01 14:14:46 CST 2021
-VERSION_CODE=20
+#Mon May 31 16:17:09 CST 2021
+VERSION_CODE=21