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

102 lines
3.7 KiB
XML
Raw Normal View History

2019-12-09 19:03:26 +01:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".activities.SurveyActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-12-31 15:04:20 +01:00
<RelativeLayout
2019-12-09 19:03:26 +01:00
android:layout_width="match_parent"
2019-12-31 15:04:20 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/activity_title_background"
android:orientation="horizontal"
android:padding="5dp">
2019-12-09 19:03:26 +01:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-31 15:04:20 +01:00
android:contentDescription="@string/carbs"
2019-12-09 19:03:26 +01:00
app:srcCompat="@mipmap/ic_launcher" />
<TextView
android:id="@+id/header"
2019-12-31 15:04:20 +01:00
android:layout_width="match_parent"
2019-12-09 19:03:26 +01:00
android:layout_height="wrap_content"
2019-12-31 15:04:20 +01:00
android:layout_centerInParent="true"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
2019-12-09 19:03:26 +01:00
android:text="@string/statistics"
2019-12-31 15:04:20 +01:00
android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
<LinearLayout
android:id="@+id/spacer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp" />
2019-12-09 19:03:26 +01:00
<TextView
android:id="@+id/stats_tdds"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<TextView
android:id="@+id/stats_tir"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<TextView
android:id="@+id/stats_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2019-12-31 15:04:20 +01:00
<LinearLayout
2019-12-09 19:03:26 +01:00
android:id="@+id/done_background"
android:layout_width="match_parent"
android:layout_height="56dp"
android:orientation="horizontal"
android:background="@android:color/transparent"
2019-12-31 15:04:20 +01:00
android:gravity="end"
2019-12-09 19:03:26 +01:00
android:layout_gravity="center_vertical"
android:paddingBottom="8dp">
<Button
android:id="@+id/stats_reset"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginEnd="8dp"
style="@style/mdtp_ActionButton.Text"
android:text="@string/reset" />
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
style="@style/mdtp_ActionButton.Text"
android:text="@string/mdtp_ok" />
2019-12-31 15:04:20 +01:00
2019-12-09 19:03:26 +01:00
</LinearLayout>
</LinearLayout>
</ScrollView>