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

154 lines
5.9 KiB
XML
Raw Normal View History

2020-01-25 21:31:13 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-05-03 00:32:26 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-08-04 14:05:09 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-05-03 00:32:26 +02:00
android:orientation="vertical"
2019-02-28 23:16:50 +01:00
tools:context=".plugins.general.overview.OverviewFragment">
2017-08-04 14:05:09 +02:00
2020-01-25 21:31:13 +01:00
<ScrollView
2021-02-04 12:03:34 +01:00
android:id="@+id/top_part_scrollbar"
2020-05-03 00:32:26 +02:00
android:layout_width="wrap_content"
2021-01-26 15:44:56 +01:00
android:layout_height="0dp"
2021-10-04 17:35:17 +02:00
android:layout_weight="1">
2017-08-04 14:05:09 +02:00
2020-05-03 00:32:26 +02:00
<LinearLayout
2021-01-26 15:44:56 +01:00
android:id="@+id/inner_layout"
2017-08-04 14:05:09 +02:00
android:layout_width="match_parent"
2020-01-25 21:31:13 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
2021-02-04 12:03:34 +01:00
android:id="@+id/notifications"
2017-08-04 14:05:09 +02:00
android:layout_width="match_parent"
2020-05-03 00:32:26 +02:00
android:layout_height="wrap_content" />
2020-01-25 21:31:13 +01:00
2021-10-04 17:35:17 +02:00
<LinearLayout
android:id="@+id/loop_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/active_profile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:text="Profile"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/temp_target"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:paddingTop="6dp"
android:paddingBottom="6dp"
2021-11-09 23:06:24 +01:00
android:text="@string/notavailable"
2021-10-04 17:35:17 +02:00
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/mdtp_white"
tools:ignore="HardcodedText" />
</LinearLayout>
2020-01-25 21:31:13 +01:00
2021-02-04 12:03:34 +01:00
<include
android:id="@+id/info_layout"
layout="@layout/overview_info_layout" />
2020-01-25 21:31:13 +01:00
2021-02-04 12:03:34 +01:00
<include
android:id="@+id/status_lights_layout"
layout="@layout/overview_statuslights_layout" />
2020-01-25 21:31:13 +01:00
2021-01-26 15:44:56 +01:00
<com.google.android.flexbox.FlexboxLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nsclient_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorControlHighlight"
app:alignContent="stretch"
app:alignItems="stretch"
app:flexDirection="row"
app:flexWrap="wrap"
app:justifyContent="center">
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/pump"
2021-01-26 15:44:56 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="4sp"
android:paddingEnd="4sp"
android:text="Pump: running"
android:textColor="@android:color/white"
2021-02-04 12:03:34 +01:00
android:textSize="16sp"
tools:ignore="HardcodedText" />
2021-01-26 15:44:56 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/openaps"
2021-01-26 15:44:56 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="4sp"
android:paddingEnd="4sp"
2021-02-04 12:03:34 +01:00
android:text="OpenAPS: 3 min ago"
2021-01-26 15:44:56 +01:00
android:textColor="@android:color/white"
2021-02-04 12:03:34 +01:00
android:textSize="16sp"
tools:ignore="HardcodedText" />
2021-01-26 15:44:56 +01:00
<TextView
2021-02-04 12:03:34 +01:00
android:id="@+id/uploader"
2021-01-26 15:44:56 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="4sp"
android:paddingEnd="4sp"
2021-02-04 12:03:34 +01:00
android:text="Uploader: 84%"
2021-01-26 15:44:56 +01:00
android:textColor="@android:color/white"
2021-02-04 12:03:34 +01:00
android:textSize="16sp"
tools:ignore="HardcodedText" />
2021-01-26 15:44:56 +01:00
</com.google.android.flexbox.FlexboxLayout>
2021-02-04 12:03:34 +01:00
<include
android:id="@+id/graphs_layout"
layout="@layout/overview_graphs_layout" />
2020-01-25 21:31:13 +01:00
2020-05-03 00:32:26 +02:00
</LinearLayout>
2020-01-25 21:31:13 +01:00
</ScrollView>
2021-10-04 17:35:17 +02:00
<LinearLayout
android:id="@+id/pump_status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:id="@+id/pump_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@color/pumpStatusBackground"
android:gravity="center_vertical|center_horizontal"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:text="@string/initializing"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
2021-01-26 15:44:56 +01:00
<include
android:id="@+id/buttons_layout"
layout="@layout/overview_buttons_layout" />
2020-01-25 21:31:13 +01:00
2020-05-03 00:32:26 +02:00
</LinearLayout>