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

305 lines
12 KiB
XML
Raw Normal View History

2019-12-19 20:30:35 +01:00
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2016-11-05 15:46:11 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-02-28 23:16:50 +01:00
tools:context=".plugins.general.actions.ActionsFragment">
2016-11-05 15:46:11 +01:00
2019-12-19 20:30:35 +01:00
<LinearLayout
android:id="@+id/action_buttons_layout"
2017-02-20 13:31:47 +01:00
android:layout_width="match_parent"
2019-12-19 20:30:35 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2017-02-20 13:10:07 +01:00
2019-12-19 20:30:35 +01:00
<TextView
2017-06-10 22:04:59 +02:00
android:layout_width="match_parent"
2016-11-05 15:46:11 +01:00
android:layout_height="wrap_content"
2019-12-19 20:30:35 +01:00
android:layout_marginTop="15dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/actions" />
<androidx.gridlayout.widget.GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
app:columnCount="2">
2016-11-05 15:46:11 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_profileswitch"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_actions_profileswitch"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_profileswitch"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="0" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_temptarget"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_actions_temptarget"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_temporarytarget"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="0" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_settempbasal"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-13 17:37:52 +02:00
android:drawableTop="@drawable/ic_actions_starttempbasal"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/overview_tempbasal_button"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="1" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-08-01 20:45:57 +02:00
android:id="@+id/actions_canceltempbasal"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-08-01 20:45:57 +02:00
android:layout_height="wrap_content"
2020-06-13 17:37:52 +02:00
android:drawableTop="@drawable/ic_cancelbasal"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/canceltemp"
android:visibility="gone"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="1" />
2017-08-01 20:45:57 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_extendedbolus"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_actions_startextbolus"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/overview_extendedbolus_button"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="1" />
2017-05-24 20:37:58 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_extendedbolus_cancel"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-12 22:17:15 +02:00
android:drawableTop="@drawable/ic_actions_cancelextbolus"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/overview_extendedbolus_cancel_button"
android:visibility="gone"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="1" />
</androidx.gridlayout.widget.GridLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/careportal" />
2020-05-10 20:10:08 +02:00
<include
android:id="@+id/careportal_stats"
layout="@layout/careportal_stats_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" />
2019-12-19 20:30:35 +01:00
<androidx.gridlayout.widget.GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
app:columnCount="2">
<info.nightscout.androidaps.utils.ui.SingleClickButton
2019-12-19 20:30:35 +01:00
android:id="@+id/actions_bgcheck"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_bgcheck"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_bgcheck"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="2" />
2016-11-11 00:54:10 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2017-06-10 22:04:59 +02:00
android:id="@+id/actions_fill"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2017-06-10 22:04:59 +02:00
android:layout_height="wrap_content"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_pump_canula"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/primefill"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="2" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2019-12-19 20:30:35 +01:00
android:id="@+id/actions_cgmsensorinsert"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_cgm_insert"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_cgmsensorinsert"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="3" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2019-12-19 20:30:35 +01:00
android:id="@+id/actions_pumpbatterychange"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_pump_battery"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_pumpbatterychange"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="3" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-01-13 19:38:10 +01:00
android:id="@+id/actions_note"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_note"
2020-01-13 19:38:10 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_note"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="4" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-01-13 19:38:10 +01:00
android:id="@+id/actions_exercise"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_exercise"
2020-01-13 19:38:10 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_exercise"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="4" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-05-10 20:10:08 +02:00
android:id="@+id/actions_announcement"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_announcement"
2020-05-10 20:10:08 +02:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_announcement"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="5" />
2019-12-19 20:30:35 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-05-10 20:10:08 +02:00
android:id="@+id/actions_question"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_question"
2020-05-10 20:10:08 +02:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/careportal_question"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="5" />
</androidx.gridlayout.widget.GridLayout>
2019-12-21 19:43:29 +01:00
2019-12-19 20:30:35 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/tools" />
<androidx.gridlayout.widget.GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
app:columnCount="2">
2017-05-09 10:46:04 +02:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2018-03-15 23:46:34 +01:00
android:id="@+id/actions_historybrowser"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2018-03-15 23:46:34 +01:00
android:layout_height="wrap_content"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_danarhistory"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/nav_historybrowser"
app:layout_column="0"
app:layout_columnWeight="1"
app:layout_gravity="fill"
2020-05-10 21:07:58 +02:00
app:layout_row="6" />
2018-03-15 23:46:34 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2018-03-15 23:46:34 +01:00
android:id="@+id/actions_tddstats"
2019-12-19 20:30:35 +01:00
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
2018-03-15 23:46:34 +01:00
android:layout_height="wrap_content"
2020-06-19 13:59:39 +02:00
android:drawableTop="@drawable/ic_cp_stats"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
2020-05-11 16:58:59 +02:00
android:text="@string/tdd"
2019-12-19 20:30:35 +01:00
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
2020-05-10 21:07:58 +02:00
app:layout_row="6" />
2018-03-15 23:46:34 +01:00
2019-12-19 20:30:35 +01:00
</androidx.gridlayout.widget.GridLayout>
2017-05-09 10:46:04 +02:00
2019-12-19 20:30:35 +01:00
</LinearLayout>
2016-11-05 15:46:11 +01:00
2019-12-19 20:30:35 +01:00
</ScrollView>