main layout finished
This commit is contained in:
parent
2e50e4196d
commit
2723e6615d
|
@ -69,14 +69,8 @@ import io.reactivex.android.schedulers.AndroidSchedulers
|
||||||
import io.reactivex.disposables.CompositeDisposable
|
import io.reactivex.disposables.CompositeDisposable
|
||||||
import io.reactivex.schedulers.Schedulers
|
import io.reactivex.schedulers.Schedulers
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.*
|
import kotlinx.android.synthetic.main.overview_fragment.*
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.overview_apsmode
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_canulaage
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_insulinage
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_reservoirlevel
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_sensorage
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_pbage
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.careportal_batterylevel
|
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.overview_activeprofile
|
import kotlinx.android.synthetic.main.overview_fragment.overview_activeprofile
|
||||||
|
import kotlinx.android.synthetic.main.overview_fragment.overview_apsmode
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.overview_arrow
|
import kotlinx.android.synthetic.main.overview_fragment.overview_arrow
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.overview_basebasal
|
import kotlinx.android.synthetic.main.overview_fragment.overview_basebasal
|
||||||
import kotlinx.android.synthetic.main.overview_fragment.overview_bg
|
import kotlinx.android.synthetic.main.overview_fragment.overview_bg
|
||||||
|
@ -178,7 +172,8 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
inflater.inflate(R.layout.overview_fragment_nsclient, container, false)
|
inflater.inflate(R.layout.overview_fragment_nsclient, container, false)
|
||||||
|
|
||||||
smallHeight || landscape ->
|
smallHeight || landscape ->
|
||||||
inflater.inflate(R.layout.overview_fragment_landscape, container, false)
|
inflater.inflate(R.layout.overview_fragment, container, false)
|
||||||
|
// inflater.inflate(R.layout.overview_fragment_landscape, container, false)
|
||||||
|
|
||||||
else ->
|
else ->
|
||||||
inflater.inflate(R.layout.overview_fragment, container, false)
|
inflater.inflate(R.layout.overview_fragment, container, false)
|
||||||
|
@ -226,7 +221,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
super.onPause()
|
super.onPause()
|
||||||
disposable.clear()
|
disposable.clear()
|
||||||
loopHandler.removeCallbacksAndMessages(null)
|
loopHandler.removeCallbacksAndMessages(null)
|
||||||
overview_apsmode?.let { unregisterForContextMenu(it) }
|
overview_apsmode_llayout?.let { unregisterForContextMenu(it) }
|
||||||
overview_activeprofile?.let { unregisterForContextMenu(it) }
|
overview_activeprofile?.let { unregisterForContextMenu(it) }
|
||||||
overview_temptarget?.let { unregisterForContextMenu(it) }
|
overview_temptarget?.let { unregisterForContextMenu(it) }
|
||||||
}
|
}
|
||||||
|
@ -300,7 +295,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
}
|
}
|
||||||
loopHandler.postDelayed(refreshLoop, 60 * 1000L)
|
loopHandler.postDelayed(refreshLoop, 60 * 1000L)
|
||||||
|
|
||||||
overview_apsmode?.let { registerForContextMenu(overview_apsmode) }
|
overview_apsmode_llayout?.let { registerForContextMenu(overview_apsmode) }
|
||||||
overview_activeprofile?.let { registerForContextMenu(it) }
|
overview_activeprofile?.let { registerForContextMenu(it) }
|
||||||
overview_temptarget?.let { registerForContextMenu(it) }
|
overview_temptarget?.let { registerForContextMenu(it) }
|
||||||
updateGUI("onResume")
|
updateGUI("onResume")
|
||||||
|
@ -566,9 +561,9 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
|
|
||||||
val glucoseStatus = GlucoseStatus(injector).glucoseStatusData
|
val glucoseStatus = GlucoseStatus(injector).glucoseStatusData
|
||||||
if (glucoseStatus != null) {
|
if (glucoseStatus != null) {
|
||||||
overview_delta?.text = "Δ ${Profile.toUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units)} $units"
|
overview_delta?.text = "Δ ${Profile.toSignedUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units)}"
|
||||||
overview_deltashort?.text = Profile.toSignedUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units)
|
overview_deltashort?.text = Profile.toSignedUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units)
|
||||||
overview_avgdelta?.text = "øΔ15m: ${Profile.toUnitsString(glucoseStatus.short_avgdelta, glucoseStatus.short_avgdelta * Constants.MGDL_TO_MMOLL, units)}\nøΔ40m: ${Profile.toUnitsString(glucoseStatus.long_avgdelta, glucoseStatus.long_avgdelta * Constants.MGDL_TO_MMOLL, units)}"
|
overview_avgdelta?.text = "Δ15m: ${Profile.toUnitsString(glucoseStatus.short_avgdelta, glucoseStatus.short_avgdelta * Constants.MGDL_TO_MMOLL, units)}\nΔ40m: ${Profile.toUnitsString(glucoseStatus.long_avgdelta, glucoseStatus.long_avgdelta * Constants.MGDL_TO_MMOLL, units)}"
|
||||||
} else {
|
} else {
|
||||||
overview_delta?.text = "Δ " + resourceHelper.gs(R.string.notavailable)
|
overview_delta?.text = "Δ " + resourceHelper.gs(R.string.notavailable)
|
||||||
overview_deltashort?.text = "---"
|
overview_deltashort?.text = "---"
|
||||||
|
@ -618,6 +613,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
}
|
}
|
||||||
|
|
||||||
pump.isSuspended -> {
|
pump.isSuspended -> {
|
||||||
|
overview_apsmode_text?.setCompoundDrawables(null, resourceHelper.gd(R.drawable.closedloop_pause), null, null)
|
||||||
overview_apsmode.setImageResource(R.drawable.closedloop_pause)
|
overview_apsmode.setImageResource(R.drawable.closedloop_pause)
|
||||||
overview_apsmode_text?.text = ""
|
overview_apsmode_text?.text = ""
|
||||||
// overview_apsmode_text?.text = resourceHelper.gs(R.string.pumpsuspended)
|
// overview_apsmode_text?.text = resourceHelper.gs(R.string.pumpsuspended)
|
||||||
|
@ -677,7 +673,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
val activeTemp = treatmentsPlugin.getTempBasalFromHistory(System.currentTimeMillis())
|
val activeTemp = treatmentsPlugin.getTempBasalFromHistory(System.currentTimeMillis())
|
||||||
overview_basebasal?.text = activeTemp?.let { if (resourceHelper.shortTextMode()) "T:" + activeTemp.toStringVeryShort() else activeTemp.toStringFull() }
|
overview_basebasal?.text = activeTemp?.let { if (resourceHelper.shortTextMode()) "T:" + activeTemp.toStringVeryShort() else activeTemp.toStringFull() }
|
||||||
?: resourceHelper.gs(R.string.pump_basebasalrate, profile.basal)
|
?: resourceHelper.gs(R.string.pump_basebasalrate, profile.basal)
|
||||||
overview_basebasal?.setOnClickListener {
|
overview_basal_llayout?.setOnClickListener {
|
||||||
var fullText = "${resourceHelper.gs(R.string.pump_basebasalrate_label)}: ${resourceHelper.gs(R.string.pump_basebasalrate, profile.basal)}"
|
var fullText = "${resourceHelper.gs(R.string.pump_basebasalrate_label)}: ${resourceHelper.gs(R.string.pump_basebasalrate, profile.basal)}"
|
||||||
if (activeTemp != null)
|
if (activeTemp != null)
|
||||||
fullText += "\n" + resourceHelper.gs(R.string.pump_tempbasal_label) + ": " + activeTemp.toStringFull()
|
fullText += "\n" + resourceHelper.gs(R.string.pump_tempbasal_label) + ": " + activeTemp.toStringFull()
|
||||||
|
@ -687,6 +683,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
}
|
}
|
||||||
overview_basebasal?.setTextColor(activeTemp?.let { resourceHelper.gc(R.color.basal) }
|
overview_basebasal?.setTextColor(activeTemp?.let { resourceHelper.gc(R.color.basal) }
|
||||||
?: resourceHelper.gc(R.color.defaulttextcolor))
|
?: resourceHelper.gc(R.color.defaulttextcolor))
|
||||||
|
overview_basebasal_icon.setImageResource(if (activeTemp != null) R.drawable.icon_cp_basal_start else R.drawable.icon_cp_basal_end)
|
||||||
|
|
||||||
// Extended bolus
|
// Extended bolus
|
||||||
val extendedBolus = treatmentsPlugin.getExtendedBolusFromHistory(System.currentTimeMillis())
|
val extendedBolus = treatmentsPlugin.getExtendedBolusFromHistory(System.currentTimeMillis())
|
||||||
|
@ -699,7 +696,9 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
OKDialog.show(it, resourceHelper.gs(R.string.extended_bolus), extendedBolus.toString())
|
OKDialog.show(it, resourceHelper.gs(R.string.extended_bolus), extendedBolus.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
overview_extended_llayout?.visibility = (extendedBolus != null && !pump.isFakingTempsByExtendedBoluses).toVisibility()
|
||||||
|
|
||||||
|
// Active profile
|
||||||
overview_activeprofile?.text = profileFunction.getProfileNameWithDuration()
|
overview_activeprofile?.text = profileFunction.getProfileNameWithDuration()
|
||||||
if (profile.percentage != 100 || profile.timeshift != 0) {
|
if (profile.percentage != 100 || profile.timeshift != 0) {
|
||||||
overview_activeprofile?.setBackgroundColor(resourceHelper.gc(R.color.ribbonWarning))
|
overview_activeprofile?.setBackgroundColor(resourceHelper.gc(R.color.ribbonWarning))
|
||||||
|
@ -717,23 +716,15 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
val bolusIob = treatmentsPlugin.lastCalculationTreatments.round()
|
val bolusIob = treatmentsPlugin.lastCalculationTreatments.round()
|
||||||
val basalIob = treatmentsPlugin.lastCalculationTempBasals.round()
|
val basalIob = treatmentsPlugin.lastCalculationTempBasals.round()
|
||||||
overview_iob?.text = when {
|
overview_iob?.text = when {
|
||||||
resourceHelper.shortTextMode() -> {
|
resourceHelper.shortTextMode() ->
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob)
|
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob)
|
||||||
}
|
|
||||||
|
|
||||||
resourceHelper.gb(R.bool.isTablet) -> {
|
else ->
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob) + " (" +
|
|
||||||
resourceHelper.gs(R.string.bolus) + ": " + resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob) +
|
|
||||||
resourceHelper.gs(R.string.basal) + ": " + resourceHelper.gs(R.string.formatinsulinunits, basalIob.basaliob) + ")"
|
|
||||||
}
|
|
||||||
|
|
||||||
else -> {
|
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob) + " (" +
|
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob) + " (" +
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob) + "/" +
|
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob) + "/" +
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, basalIob.basaliob) + ")"
|
resourceHelper.gs(R.string.formatinsulinunits, basalIob.basaliob) + ")"
|
||||||
}
|
}
|
||||||
}
|
overview_iob_llayout?.setOnClickListener {
|
||||||
overview_iob?.setOnClickListener {
|
|
||||||
activity?.let {
|
activity?.let {
|
||||||
OKDialog.show(it, resourceHelper.gs(R.string.iob),
|
OKDialog.show(it, resourceHelper.gs(R.string.iob),
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob) + "\n" +
|
resourceHelper.gs(R.string.formatinsulinunits, bolusIob.iob + basalIob.basaliob) + "\n" +
|
||||||
|
@ -751,7 +742,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
var cobText: String = resourceHelper.gs(R.string.value_unavailable_short)
|
var cobText: String = resourceHelper.gs(R.string.value_unavailable_short)
|
||||||
val cobInfo = iobCobCalculatorPlugin.getCobInfo(false, "Overview COB")
|
val cobInfo = iobCobCalculatorPlugin.getCobInfo(false, "Overview COB")
|
||||||
if (cobInfo.displayCob != null) {
|
if (cobInfo.displayCob != null) {
|
||||||
cobText = DecimalFormatter.to0Decimal(cobInfo.displayCob)
|
cobText = resourceHelper.gs(R.string.format_carbs, cobInfo.displayCob.toInt())
|
||||||
if (cobInfo.futureCarbs > 0) cobText += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")"
|
if (cobInfo.futureCarbs > 0) cobText += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")"
|
||||||
}
|
}
|
||||||
overview_cob?.text = cobText
|
overview_cob?.text = cobText
|
||||||
|
@ -772,9 +763,10 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
overview_uploader?.setOnClickListener { activity?.let { OKDialog.show(it, resourceHelper.gs(R.string.uploader), nsDeviceStatus.extendedUploaderStatus) } }
|
overview_uploader?.setOnClickListener { activity?.let { OKDialog.show(it, resourceHelper.gs(R.string.uploader), nsDeviceStatus.extendedUploaderStatus) } }
|
||||||
|
|
||||||
// Sensitivity
|
// Sensitivity
|
||||||
|
overview_sensitivity?.text =
|
||||||
iobCobCalculatorPlugin.getLastAutosensData("Overview")?.let { autosensData ->
|
iobCobCalculatorPlugin.getLastAutosensData("Overview")?.let { autosensData ->
|
||||||
overview_sensitivity?.text = String.format(Locale.ENGLISH, "%.0f%%", autosensData.autosensResult.ratio * 100)
|
String.format(Locale.ENGLISH, "%.0f%%", autosensData.autosensResult.ratio * 100)
|
||||||
}
|
} ?: ""
|
||||||
|
|
||||||
// ****** GRAPH *******
|
// ****** GRAPH *******
|
||||||
GlobalScope.launch(Dispatchers.Main) {
|
GlobalScope.launch(Dispatchers.Main) {
|
||||||
|
|
|
@ -67,11 +67,11 @@ class RandomBgPlugin @Inject constructor(
|
||||||
super.onStop()
|
super.onStop()
|
||||||
loopHandler.removeCallbacks(refreshLoop)
|
loopHandler.removeCallbacks(refreshLoop)
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
override fun specialEnableCondition(): Boolean {
|
override fun specialEnableCondition(): Boolean {
|
||||||
return isRunningTest() || virtualPumpPlugin.isEnabled(PluginType.PUMP) && buildHelper.isEngineeringMode()
|
return isRunningTest() || virtualPumpPlugin.isEnabled(PluginType.PUMP) && buildHelper.isEngineeringMode()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
override fun handleNewData(intent: Intent) {
|
override fun handleNewData(intent: Intent) {
|
||||||
if (!isEnabled(PluginType.BGSOURCE)) return
|
if (!isEnabled(PluginType.BGSOURCE)) return
|
||||||
val min = 70
|
val min = 70
|
||||||
|
|
|
@ -2,6 +2,7 @@ package info.nightscout.androidaps.utils.resources
|
||||||
|
|
||||||
import android.content.res.AssetFileDescriptor
|
import android.content.res.AssetFileDescriptor
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
|
import android.graphics.drawable.Drawable
|
||||||
import android.util.DisplayMetrics
|
import android.util.DisplayMetrics
|
||||||
import androidx.annotation.*
|
import androidx.annotation.*
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@ interface ResourceHelper {
|
||||||
fun gs(@StringRes id: Int, vararg args: Any?): String
|
fun gs(@StringRes id: Int, vararg args: Any?): String
|
||||||
fun gq(@PluralsRes id: Int, quantity: Int, vararg args: Any?): String
|
fun gq(@PluralsRes id: Int, quantity: Int, vararg args: Any?): String
|
||||||
fun gc(@ColorRes id: Int): Int
|
fun gc(@ColorRes id: Int): Int
|
||||||
|
fun gd(@DrawableRes id: Int): Drawable?
|
||||||
fun gb(@BoolRes id :Int) : Boolean
|
fun gb(@BoolRes id :Int) : Boolean
|
||||||
fun gcs(@ColorRes id: Int): String
|
fun gcs(@ColorRes id: Int): String
|
||||||
fun gsa(@ArrayRes id:Int): Array<String>
|
fun gsa(@ArrayRes id:Int): Array<String>
|
||||||
|
|
|
@ -5,12 +5,9 @@ import android.content.Context
|
||||||
import android.content.res.AssetFileDescriptor
|
import android.content.res.AssetFileDescriptor
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import android.graphics.BitmapFactory
|
import android.graphics.BitmapFactory
|
||||||
|
import android.graphics.drawable.Drawable
|
||||||
import android.util.DisplayMetrics
|
import android.util.DisplayMetrics
|
||||||
import androidx.annotation.ArrayRes
|
import androidx.annotation.*
|
||||||
import androidx.annotation.BoolRes
|
|
||||||
import androidx.annotation.ColorRes
|
|
||||||
import androidx.annotation.PluralsRes
|
|
||||||
import androidx.annotation.StringRes
|
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import info.nightscout.androidaps.Config
|
import info.nightscout.androidaps.Config
|
||||||
import info.nightscout.androidaps.R
|
import info.nightscout.androidaps.R
|
||||||
|
@ -30,6 +27,8 @@ class ResourceHelperImplementation @Inject constructor(private val context: Cont
|
||||||
|
|
||||||
override fun gc(@ColorRes id: Int): Int = ContextCompat.getColor(context, id)
|
override fun gc(@ColorRes id: Int): Int = ContextCompat.getColor(context, id)
|
||||||
|
|
||||||
|
override fun gd(@DrawableRes id: Int): Drawable? = context.getDrawable(id)
|
||||||
|
|
||||||
override fun gb(@BoolRes id: Int): Boolean = context.resources.getBoolean(id)
|
override fun gb(@BoolRes id: Int): Boolean = context.resources.getBoolean(id)
|
||||||
|
|
||||||
@SuppressLint("ResourceType")
|
@SuppressLint("ResourceType")
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<vector android:height="48dp" android:tint="#008585"
|
||||||
|
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||||
|
android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#FF000000" android:pathData="M16,17.01V10h-2v7.01h-3L15,21l4,-3.99h-3zM9,3L5,6.99h3V14h2V6.99h3L9,3z"/>
|
||||||
|
</vector>
|
|
@ -45,8 +45,8 @@
|
||||||
android:id="@+id/overview_activeprofile"
|
android:id="@+id/overview_activeprofile"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="right"
|
android:layout_gravity="end"
|
||||||
android:layout_marginRight="5dp"
|
android:layout_marginEnd="5dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_vertical|center_horizontal"
|
android:gravity="center_vertical|center_horizontal"
|
||||||
android:paddingTop="3dp"
|
android:paddingTop="3dp"
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
android:id="@+id/overview_temptarget"
|
android:id="@+id/overview_temptarget"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="right"
|
android:layout_gravity="end"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_vertical|center_horizontal"
|
android:gravity="center_vertical|center_horizontal"
|
||||||
android:paddingTop="3dp"
|
android:paddingTop="3dp"
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/bg_tbr_layout"
|
app:layout_constraintBottom_toTopOf="@+id/info_layout"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
||||||
|
@ -94,8 +94,8 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/bg_tbr_layout"
|
android:id="@+id/info_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_statuslights"
|
app:layout_constraintBottom_toTopOf="@+id/overview_statuslights"
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="00.0"
|
android:text="00.0"
|
||||||
android:textSize="42sp"
|
android:textSize="60sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/overview_arrow"
|
app:layout_constraintEnd_toStartOf="@+id/overview_arrow"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -122,231 +122,56 @@
|
||||||
android:paddingStart="-2dp"
|
android:paddingStart="-2dp"
|
||||||
android:paddingEnd="0dp"
|
android:paddingEnd="0dp"
|
||||||
android:text="→"
|
android:text="→"
|
||||||
android:textSize="28sp"
|
android:textSize="42sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/overview_bg_guideline"
|
app:layout_constraintEnd_toStartOf="@+id/overview_deltas_llayout"
|
||||||
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg"
|
app:layout_constraintStart_toEndOf="@+id/overview_bg"
|
||||||
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_hor_space"
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_deltas_llayout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text=" "
|
android:orientation="vertical"
|
||||||
android:textStyle="bold"
|
app:layout_constraintEnd_toStartOf="@+id/overview_apsmode_llayout"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_arrow"
|
app:layout_constraintStart_toEndOf="@+id/overview_arrow"
|
||||||
app:layout_constraintTop_toTopOf="@+id/overview_bg" />
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/overview_timeago"
|
android:id="@+id/overview_timeago"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="1 min ago"
|
android:text="n/a"
|
||||||
android:textSize="14sp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_delta"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_bg" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/overview_delta"
|
android:id="@+id/overview_delta"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="delta 15m: 0.3"
|
android:text="n/a"
|
||||||
android:textSize="14sp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_avgdelta"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_timeago" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/overview_avgdelta"
|
android:id="@+id/overview_avgdelta"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="delta 40m: 0.3"
|
android:layout_marginBottom="24dp"
|
||||||
android:textSize="14sp"
|
android:text="n/a"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/overview_arrow"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_delta" />
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
<!-- right side -->
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/overview_bg_guideline"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/overview_iob_label"
|
|
||||||
app:layout_constraintGuide_percent="0.40"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_hor_space"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<!-- right side IOB -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_iob_label"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/iob"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_cob_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintTop_toBottomOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_iob_colon"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text=":"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_iob_label"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/overview_iob_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_iob"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:text="@string/iob"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_iob_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_iob_colon" />
|
|
||||||
|
|
||||||
<!-- right side COB -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_cob_label"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/cob"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_basebasal_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_iob_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_cob_colon"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text=":"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_cob_label"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_iob_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_cob"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:text="@string/cob"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_cob_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_cob_colon" />
|
|
||||||
|
|
||||||
<!-- right side basal -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_basebasal_label"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/basal_short"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_extendedbolus_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_cob_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_basebasal_colon"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text=":"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_basebasal_label"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_cob_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_basebasal"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:text="0.50U/h"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_basebasal_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_basebasal_colon" />
|
|
||||||
|
|
||||||
<!-- right side extended -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_extendedbolus_label"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/extended_bolus_short"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_sensitivity_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_basebasal_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_extendedbolus_colon"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text=":"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_extendedbolus_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_extendedbolus_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_extendedbolus"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:text="0.50U/h"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_extendedbolus_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_extendedbolus_colon" />
|
|
||||||
|
|
||||||
<!-- right side AS -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_sensitivity_label"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/sensitivity_short"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_bg_guideline"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_extendedbolus_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_sensitivity_colon"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text=":"
|
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_sensitivity_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_sensitivity_label" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/overview_sensitivity"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:text="100%"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_sensitivity_label"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/overview_sensitivity_colon" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_apsmode_llayout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginRight="5dp"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/overview_deltas_llayout"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -354,19 +179,162 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginBottom="-4dp"
|
||||||
android:src="@drawable/closedloop" />
|
android:src="@drawable/closedloop" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/overview_apsmode_text"
|
android:id="@+id/overview_apsmode_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:paddingTop="3dp"
|
android:paddingTop="3dp"
|
||||||
android:paddingBottom="3dp"
|
android:paddingBottom="3dp"
|
||||||
android:text="Open Loop"
|
android:text="Open Loop"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_iob_llayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/overview_cob_llayout"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/icon_bolus" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/overview_iob"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="n/a"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_cob_llayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/overview_basal_llayout"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/overview_iob_llayout"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/icon_cp_bolus_carbs" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/overview_cob"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="n/a"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_basal_llayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/overview_extended_llayout"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/overview_cob_llayout"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/overview_basebasal_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/icon_cp_basal_start" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/overview_basebasal"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="n/a"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_extended_llayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/overview_as_llayout"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/overview_basal_llayout"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/icon_actions_startextbolus" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/overview_extendedbolus"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="n/a"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/overview_as_llayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/overview_extended_llayout"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/overview_bg">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/ic_swap_vert_black_48dp_green" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/overview_sensitivity"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:text="n/a"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -382,7 +350,7 @@
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/bg_tbr_layout">
|
app:layout_constraintTop_toBottomOf="@id/info_layout">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
@ -397,9 +365,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="1dp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
android:paddingEnd="2dp"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
@ -414,16 +380,15 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="1dp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
android:paddingEnd="2dp"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/careportal_reservoirlevel"
|
android:id="@+id/careportal_reservoirlevel"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:textSize="14sp" />
|
android:paddingStart="2dp"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
@ -438,9 +403,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="1dp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
android:paddingEnd="2dp"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
@ -455,18 +418,16 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="1dp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
android:paddingEnd="1dp"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/careportal_batterylevel"
|
android:id="@+id/careportal_batterylevel"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="1dp"
|
android:paddingStart="2dp"
|
||||||
android:paddingEnd="2dp"
|
android:paddingEnd="2dp"
|
||||||
android:textSize="14sp" />
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -496,7 +457,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:text=""
|
android:text=""
|
||||||
android:textSize="15sp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/overview_bggraph"
|
app:layout_constraintBottom_toBottomOf="@+id/overview_bggraph"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/overview_bggraph"
|
app:layout_constraintEnd_toEndOf="@+id/overview_bggraph"
|
||||||
app:layout_constraintStart_toStartOf="@+id/overview_bggraph"
|
app:layout_constraintStart_toStartOf="@+id/overview_bggraph"
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/bg_tbr_layout"
|
app:layout_constraintBottom_toTopOf="@+id/info_layout"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/bg_tbr_layout"
|
android:id="@+id/info_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
@ -374,7 +374,7 @@
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/bg_tbr_layout">
|
app:layout_constraintTop_toBottomOf="@id/info_layout">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/bg_tbr_layout"
|
app:layout_constraintBottom_toTopOf="@+id/info_layout"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
app:layout_constraintTop_toBottomOf="@+id/overview_looplayout">
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/bg_tbr_layout"
|
android:id="@+id/info_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
@ -374,7 +374,7 @@
|
||||||
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
app:layout_constraintBottom_toTopOf="@+id/overview_bggraph"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/bg_tbr_layout">
|
app:layout_constraintTop_toBottomOf="@id/info_layout">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
|
|
|
@ -477,7 +477,7 @@
|
||||||
<string name="MM640g">MM640g</string>
|
<string name="MM640g">MM640g</string>
|
||||||
<string name="ongoingnotificaction">Ongoing Notification</string>
|
<string name="ongoingnotificaction">Ongoing Notification</string>
|
||||||
<string name="old_data">OLD DATA</string>
|
<string name="old_data">OLD DATA</string>
|
||||||
<string name="minago">%1$d min ago</string>
|
<string name="minago">%1$dm ago</string>
|
||||||
<string name="sms_minago">%1$dmin ago</string>
|
<string name="sms_minago">%1$dmin ago</string>
|
||||||
<string name="localprofile">Local Profile</string>
|
<string name="localprofile">Local Profile</string>
|
||||||
<string name="openapsama">OpenAPS AMA</string>
|
<string name="openapsama">OpenAPS AMA</string>
|
||||||
|
@ -596,7 +596,7 @@
|
||||||
<string name="wear_detailedIOB_title">Show detailed IOB</string>
|
<string name="wear_detailedIOB_title">Show detailed IOB</string>
|
||||||
<string name="wear_detailedIOB_summary">Break down IOB into bolus and basal IOB on the watchface</string>
|
<string name="wear_detailedIOB_summary">Break down IOB into bolus and basal IOB on the watchface</string>
|
||||||
<string name="nosuccess">not successful - please check phone</string>
|
<string name="nosuccess">not successful - please check phone</string>
|
||||||
<string name="notavailable">Not available</string>
|
<string name="notavailable">n/a</string>
|
||||||
<string name="key_smscommunicator_allowednumbers" translatable="false">smscommunicator_allowednumbers</string>
|
<string name="key_smscommunicator_allowednumbers" translatable="false">smscommunicator_allowednumbers</string>
|
||||||
<string name="key_smscommunicator_remotecommandsallowed" translatable="false">smscommunicator_remotecommandsallowed</string>
|
<string name="key_smscommunicator_remotecommandsallowed" translatable="false">smscommunicator_remotecommandsallowed</string>
|
||||||
<string name="patientage">Patient age</string>
|
<string name="patientage">Patient age</string>
|
||||||
|
|
Loading…
Reference in a new issue