forked from penguin86/luna-tracker
Features: - Sleep tracking with timer and manual duration input - Statistics module with 5 tabs (daily summary, feeding, diapers, sleep, growth) - Export/Import backup functionality in settings - Complete German, French and Italian translations
101 lines
3.5 KiB
XML
101 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Weight Chart -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/button_background"
|
|
android:padding="15dp"
|
|
android:layout_marginBottom="10dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/stats_weight_curve"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/accent"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/chart_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/chart_labels"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Weight Summary -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/button_background"
|
|
android:padding="15dp"
|
|
android:layout_marginBottom="10dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/stats_weight_summary"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/accent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/current_weight"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"/>
|
|
|
|
<TextView
|
|
android:id="@+id/weight_gain_week"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:textSize="14sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/weight_gain_month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:textSize="14sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- No Data Message -->
|
|
<TextView
|
|
android:id="@+id/no_data_message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:padding="40dp"
|
|
android:text="@string/stats_no_weight_data"
|
|
android:textSize="16sp"
|
|
android:textColor="@color/grey"
|
|
android:visibility="gone"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|