Show meteo line centered with WX prefix
This commit is contained in:
@@ -123,7 +123,7 @@ class AprsMeteo(
|
||||
// В APRS метео-часть температура в градусах Фаренгейта
|
||||
val c = (temp - 32.0) * 5.0 / 9.0
|
||||
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.
|
||||
|
||||
@@ -107,9 +107,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
android:singleLine="true"
|
||||
|
||||
Reference in New Issue
Block a user