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

276 lines
11 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
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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" />
<androidx.gridlayout.widget.GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
app:columnCount="2">
<info.nightscout.androidaps.utils.SingleClickButton
android:id="@+id/actions_bgcheck"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:drawableTop="@drawable/icon_cp_bgcheck"
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
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
2018-03-23 22:09:09 +01:00
android:drawableTop="@drawable/icon_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.SingleClickButton
android:id="@+id/actions_cgmsensorinsert"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:drawableTop="@drawable/icon_cp_cgm_insert"
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.SingleClickButton
android:id="@+id/actions_pumpbatterychange"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:drawableTop="@drawable/icon_cp_pump_battery"
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" />
2020-01-13 19:38:10 +01:00
<info.nightscout.androidaps.utils.SingleClickButton
android:id="@+id/actions_note"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:drawableTop="@drawable/icon_cp_note"
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.SingleClickButton
android:id="@+id/actions_exercise"
style="@style/ButtonSmallFontStyle"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:drawableTop="@drawable/icon_cp_exercise"
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" />
2019-12-19 20:30:35 +01:00
</androidx.gridlayout.widget.GridLayout>
2019-12-21 19:43:29 +01:00
<include
android:id="@+id/careportal_stats"
layout="@layout/careportal_stats_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
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
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_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"
app:layout_row="4" />
2018-03-15 23:46:34 +01:00
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.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"
android:drawableTop="@drawable/icon_danarstats"
2019-12-19 20:30:35 +01:00
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/danar_stats_tdd"
app:layout_column="1"
app:layout_columnWeight="1"
app:layout_gravity="fill"
app:layout_row="4" />
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>