AndroidAPS/app/src/main/res/layout/overview_buttons_layout.xml

135 lines
5.4 KiB
XML
Raw Normal View History

2020-05-03 00:32:26 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2021-02-04 12:03:34 +01:00
xmlns:tools="http://schemas.android.com/tools"
2020-05-03 00:32:26 +02:00
android:id="@+id/overview_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/accept_temp_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="@string/setbasalquestion"
android:textColor="@color/colorAcceptTempButton"
android:visibility="gone" />
2021-10-28 20:21:15 +02:00
<LinearLayout
android:id="@+id/user_buttons_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="0dp"
android:paddingEnd="5dp" >
</LinearLayout>
2020-05-03 00:32:26 +02:00
<LinearLayout
2021-02-04 12:03:34 +01:00
android:id="@+id/buttons_layout"
2020-05-03 00:32:26 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="0dp"
android:paddingEnd="5dp" >
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/treatment_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
android:drawableTop="@drawable/icon_insulin_carbs"
android:text="@string/overview_treatment_label"
android:textColor="@color/colorTreatmentButton"
android:textSize="10sp"
2021-02-04 12:03:34 +01:00
android:visibility="gone"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/insulin_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_bolus"
2020-05-03 00:32:26 +02:00
android:text="@string/overview_insulin_label"
android:textColor="@color/colorInsulinButton"
2021-02-04 12:03:34 +01:00
android:textSize="10sp"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/carbs_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_cp_bolus_carbs"
2021-01-21 17:21:29 +01:00
android:text="@string/treatments_wizard_carbs_label"
2020-05-03 00:32:26 +02:00
android:textColor="@color/colorCarbsButton"
2021-02-04 12:03:34 +01:00
android:textSize="10sp"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/wizard_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_calculator"
2020-05-03 00:32:26 +02:00
android:text="@string/overview_calculator_label"
android:textColor="@color/colorCalculatorButton"
2021-02-04 12:03:34 +01:00
android:textSize="10sp"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/calibration_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_calibration"
2020-05-03 00:32:26 +02:00
android:text="@string/overview_calibration"
android:textColor="@color/colorCalibrationButton"
android:textSize="10sp"
2021-02-04 12:03:34 +01:00
android:visibility="gone"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/cgm_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_xdrip"
2020-05-03 00:32:26 +02:00
android:text="@string/overview_cgm"
android:textColor="@color/colorCalibrationButton"
android:textSize="10sp"
2021-02-04 12:03:34 +01:00
android:visibility="gone"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-04 12:03:34 +01:00
android:id="@+id/quick_wizard_button"
2020-05-03 00:32:26 +02:00
style="?android:attr/buttonStyle"
android:layout_width="0px"
android:layout_height="fill_parent"
android:layout_marginEnd="-4dp"
android:layout_weight="0.5"
2021-02-04 12:03:34 +01:00
android:drawableTop="@drawable/ic_quick_wizard"
2020-05-03 00:32:26 +02:00
android:text="@string/quickwizard"
android:textColor="@color/colorQuickWizardButton"
2021-02-04 12:03:34 +01:00
android:textSize="10sp"
tools:ignore="SmallSp" />
2020-05-03 00:32:26 +02:00
</LinearLayout>
</LinearLayout>