App 2.21.0: Overview style Dashboard, an instrument cluster
Power, speed and battery as gauges and a strip of gear, climate, clock, usage and battery; Settings picks Tiles or Dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/label_overview_style" android:textAppearance="@style/Text.EV.Body" android:layout_marginTop="8dp" />
|
||||
<com.google.android.material.textfield.TextInputLayout style="@style/Widget.EV.Dropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp">
|
||||
<com.google.android.material.textfield.MaterialAutoCompleteTextView android:id="@+id/overview_style_choices" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="72dp" android:inputType="none" android:textSize="20sp" app:simpleItemLayout="@layout/dropdown_item" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" android:layout_marginEnd="16dp">
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- The Overview as an instrument cluster (Settings → Overview style → Dashboard): power, speed
|
||||
and battery as gauges, and a strip of gear, climate, clock, usage and battery below. -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingStart="24dp" android:paddingEnd="24dp" android:paddingTop="8dp" android:paddingBottom="12dp">
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="horizontal" android:gravity="bottom" android:baselineAligned="false">
|
||||
<com.evsuite.abrp.GaugeView android:id="@+id/dash_power" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.85" android:layout_marginTop="60dp" />
|
||||
<com.evsuite.abrp.GaugeView android:id="@+id/dash_speed" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1.15" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" />
|
||||
<com.evsuite.abrp.GaugeView android:id="@+id/dash_battery" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.85" android:layout_marginTop="60dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="76dp" android:layout_marginTop="12dp" android:orientation="horizontal" android:gravity="center_vertical" android:paddingStart="32dp" android:paddingEnd="32dp" android:background="@drawable/bg_glass">
|
||||
<TextView android:id="@+id/dash_gear" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:gravity="center" android:text="@string/no_value" android:textColor="?attr/evAccentLight" android:textSize="26sp" android:fontFamily="sans-serif-medium" />
|
||||
<TextView android:id="@+id/dash_climate" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:gravity="center" android:text="@string/no_value" android:textColor="@color/ev_text_primary" android:textSize="26sp" android:fontFeatureSettings="tnum" />
|
||||
<TextClock android:id="@+id/dash_clock" android:layout_width="0dp" android:layout_weight="1.4" android:layout_height="wrap_content" android:gravity="center" android:format24Hour="HH:mm" android:format12Hour="HH:mm" android:textColor="?attr/evAccentLight" android:textSize="38sp" android:fontFamily="sans-serif-light" android:fontFeatureSettings="tnum" />
|
||||
<TextView android:id="@+id/dash_usage" android:layout_width="0dp" android:layout_weight="1.4" android:layout_height="wrap_content" android:gravity="center" android:text="@string/no_value" android:textColor="@color/ev_text_primary" android:textSize="22sp" android:fontFeatureSettings="tnum" />
|
||||
<LinearLayout android:layout_width="0dp" android:layout_weight="1.4" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center">
|
||||
<com.evsuite.abrp.BatteryBarView android:id="@+id/dash_battery_bar" android:layout_width="96dp" android:layout_height="32dp" />
|
||||
<TextView android:id="@+id/dash_battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="12dp" android:text="@string/no_value" android:textColor="@color/ev_text_primary" android:textSize="22sp" android:fontFeatureSettings="tnum" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -15,6 +15,10 @@
|
||||
<com.google.android.material.textfield.TextInputLayout style="@style/Widget.EV.Dropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp">
|
||||
<com.google.android.material.textfield.MaterialAutoCompleteTextView android:id="@+id/accent_choices" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="72dp" android:inputType="none" android:textSize="20sp" app:simpleItemLayout="@layout/dropdown_item" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/label_overview_style" android:textAppearance="@style/Text.EV.Body" android:layout_marginTop="8dp" />
|
||||
<com.google.android.material.textfield.TextInputLayout style="@style/Widget.EV.Dropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp">
|
||||
<com.google.android.material.textfield.MaterialAutoCompleteTextView android:id="@+id/overview_style_choices" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="72dp" android:inputType="none" android:textSize="20sp" app:simpleItemLayout="@layout/dropdown_item" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="24dp" android:background="@drawable/bg_glass" android:layout_marginTop="16dp">
|
||||
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/design_battery_settings_title" android:textAppearance="@style/Text.EV.Eyebrow" />
|
||||
|
||||
@@ -119,6 +119,14 @@
|
||||
|
||||
<string name="label_full_screen">Full screen</string>
|
||||
<string name="hint_full_screen">Hides the car\'s top and bottom bars while this app is open. Swipe in from the top or bottom edge to show them briefly, e.g. for the climate controls.</string>
|
||||
<string name="label_overview_style">Overview style</string>
|
||||
<string name="overview_style_tiles">Tiles</string>
|
||||
<string name="overview_style_dashboard">Dashboard</string>
|
||||
<string name="dash_unit_kw">kW</string>
|
||||
<string name="dash_unit_kmh">km/h</string>
|
||||
<string name="dash_unit_battery">SOC</string>
|
||||
<string name="dash_total">TOTAL %1$s</string>
|
||||
<string name="dash_trip">TRIP %1$s</string>
|
||||
<string name="label_voice_key">Double-press the voice key to open this app</string>
|
||||
<string name="hint_voice_key">Press the voice key on the steering wheel twice quickly. The voice assistant may still react to the presses.</string>
|
||||
<string name="label_abrp_upload_enabled">Send live data</string>
|
||||
|
||||
Reference in New Issue
Block a user