Show meteo line centered with WX prefix

This commit is contained in:
ua1zbe
2026-08-18 08:53:09 +03:00
parent 4102140fa0
commit f5cb74ba25
2 changed files with 3 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ class AprsMeteo(
// В APRS метео-часть температура в градусах Фаренгейта // В APRS метео-часть температура в градусах Фаренгейта
val c = (temp - 32.0) * 5.0 / 9.0 val c = (temp - 32.0) * 5.0 / 9.0
val t = Math.round(c).toString() val t = Math.round(c).toString()
return line.substringBefore('>') + " Температура: " + t + " °C" return "WX " + line.substringBefore('>') + " Температура: " + t + " °C"
} }
/** Температура из метео-части после символа '_': t057=57°F, t06=6°F, t-08=-8°F. /** Температура из метео-части после символа '_': t057=57°F, t06=6°F, t-08=-8°F.

View File

@@ -107,9 +107,10 @@
<TextView <TextView
android:id="@+id/lbl_subtitle" android:id="@+id/lbl_subtitle"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:gravity="center"
android:textColor="@color/text_secondary" android:textColor="@color/text_secondary"
android:textSize="14sp" android:textSize="14sp"
android:singleLine="true" android:singleLine="true"