mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-01 11:42:18 +01:00
127 lines
4.7 KiB
XML
127 lines
4.7 KiB
XML
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.BodyEnergy">
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/body_energy_date_view"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center"
|
||
|
android:textSize="20sp"
|
||
|
android:layout_marginTop="15dp"
|
||
|
android:layout_marginBottom="20dp"
|
||
|
/>
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="180dp"
|
||
|
android:layout_height="180dp"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_centerHorizontal="true"
|
||
|
android:scaleType="fitStart"
|
||
|
android:id="@+id/body_energy_gauge" />
|
||
|
|
||
|
|
||
|
<TableLayout
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="183dp"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:layout_marginBottom="30dp"
|
||
|
android:layout_weight="3"
|
||
|
android:shrinkColumns="*"
|
||
|
android:stretchColumns="*">
|
||
|
|
||
|
<TableRow
|
||
|
android:id="@+id/tableRow1"
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:weightSum="2">
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingLeft="20dip"
|
||
|
android:paddingTop="20dip"
|
||
|
android:paddingRight="20dip">
|
||
|
|
||
|
<View
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="5px"
|
||
|
android:background="@color/value_line_color" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/body_energy_gained"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="left"
|
||
|
android:layout_marginTop="20dip"
|
||
|
android:text="+ 0"
|
||
|
android:textSize="20sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="left"
|
||
|
android:text="@string/body_energy_gained"
|
||
|
android:textSize="12sp" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingLeft="20dip"
|
||
|
android:paddingTop="20dip"
|
||
|
android:paddingRight="20dip">
|
||
|
|
||
|
<View
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="5px"
|
||
|
android:background="@color/value_line_color" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/body_energy_lost"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="left"
|
||
|
android:layout_marginTop="20dip"
|
||
|
android:text="- 0"
|
||
|
android:textSize="20sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="left"
|
||
|
android:text="@string/body_energy_lost"
|
||
|
android:textSize="12sp" />
|
||
|
</LinearLayout>
|
||
|
</TableRow>
|
||
|
</TableLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="250sp"
|
||
|
>
|
||
|
<com.github.mikephil.charting.charts.LineChart
|
||
|
android:id="@+id/body_energy_chart"
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="fill_parent"
|
||
|
android:layout_weight="2" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</RelativeLayout>
|