mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-01 11:42:18 +01:00
f76180c4bd
Add 3 new widget types: - Body energy - Stress (simple, segmented, breakdown) - HRV Make widgets clickable, opening the corresponding charts page.
44 lines
1.5 KiB
XML
44 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
android:gravity="center_vertical"
|
|
tools:context=".activities.dashboard.AbstractDashboardWidget">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/card_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:orientation="vertical"
|
|
tools:ignore="UselessParent">
|
|
|
|
<ImageView
|
|
android:id="@+id/gauge_bar"
|
|
android:layout_width="150dp"
|
|
android:layout_height="75dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:scaleType="fitStart" />
|
|
|
|
<TextView
|
|
android:id="@+id/gauge_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="28dp"
|
|
android:text="@string/stats_empty_value"
|
|
android:textSize="30sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/gauge_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/gauge_value"
|
|
android:layout_centerHorizontal="true"
|
|
android:text="@string/no_data" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|