Make activity details headers consistent

This commit is contained in:
José Rebelo
2025-04-04 22:02:46 +00:00
committed by José Rebelo
parent ca5faa2a1f
commit c45842b7d3
4 changed files with 45 additions and 10 deletions
@@ -359,7 +359,8 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
TextView label_field = new TextView(ActivitySummaryDetail.this);
label_field.setId(View.generateViewId());
label_field.setTextSize(18);
label_field.setPaddingRelative(dpToPx(16), dpToPx(16), 0, dpToPx(16));
label_field.setGravity(Gravity.CENTER);
label_field.setPaddingRelative(dpToPx(16), dpToPx(16), dpToPx(16), dpToPx(16));
label_field.setTypeface(null, Typeface.BOLD);
label_field.setText(workoutValueFormatter.getStringResourceByName(groupKey));
label_row.addView(label_field);
+25 -3
View File
@@ -4,10 +4,32 @@
android:layout_height="match_parent"
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.charts.ActivityChartsActivity$PlaceholderFragment">
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/activitysleepchart"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/activity_vertical_margin" />
android:orientation="vertical">
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-black"
android:gravity="center"
android:padding="16dp"
android:text="@string/heart_rate"
android:textSize="18sp" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="?attr/row_separator" />
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/activitysleepchart"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/activity_vertical_margin" />
</LinearLayout>
</RelativeLayout>
+17 -5
View File
@@ -9,32 +9,44 @@
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="?attr/row_separator" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-black"
android:gravity="center"
android:padding="16dp"
android:text="@string/gps_track"
android:textSize="16sp" />
android:textSize="18sp" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="?attr/row_separator" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@color/transparent"
>
android:orientation="vertical">
<TextView
android:id="@+id/gpsWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/maps_not_found" />
<org.mapsforge.map.android.view.MapView
android:id="@+id/activitygpsview"
android:layout_width="match_parent"
android:layout_height="300dp"
android:orientation="vertical"
/>
android:orientation="vertical" />
</LinearLayout>
</LinearLayout>
+1 -1
View File
@@ -3559,7 +3559,7 @@
<string name="pref_garmin_agps_help">The list below contains all URLs requested by the watch for AGPS updates. You can select a file from the phone\'s storage that will be sent to the watch when it requests an update.</string>
<string name="copied_to_clipboard">Copied to clipboard</string>
<string name="loading">Loading…</string>
<string name="maps_not_found">Maps not found</string>
<string name="maps_not_found">No maps found - please select a valid maps folder in the settings</string>
<string name="toggle_debug_mode">Toggle debug mode</string>
<string name="share_debug_info">Share debug info</string>
<string name="realtime_settings">Realtime settings</string>