mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-01 03:32:17 +01:00
93 lines
3.2 KiB
XML
93 lines
3.2 KiB
XML
<ScrollView 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:layout_marginTop="15dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:gravity="center"
|
|
android:textSize="20sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/body_energy_gauge"
|
|
android:layout_width="180dp"
|
|
android:layout_height="180dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center"
|
|
android:scaleType="fitStart" />
|
|
|
|
|
|
<GridLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:background="@color/gauge_line_color"
|
|
android:columnCount="2">
|
|
|
|
<LinearLayout
|
|
style="@style/GridTile"
|
|
android:layout_marginTop="2dp"
|
|
android:layout_marginEnd="1dp">
|
|
|
|
<TextView
|
|
android:id="@+id/body_energy_gained"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="+ 0"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/body_energy_gained"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/GridTile"
|
|
android:layout_marginTop="2dp"
|
|
android:layout_marginEnd="1dp">
|
|
|
|
<TextView
|
|
android:id="@+id/body_energy_lost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="- 0"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/body_energy_lost"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
</GridLayout>
|
|
|
|
<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>
|
|
|
|
</ScrollView>
|