Started on battery history screen for new UI - not working yet, but it runs without crashing
This commit is contained in:
31
app/src/main/res/layout/fragment_batt.xml
Normal file
31
app/src/main/res/layout/fragment_batt.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout 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"
|
||||
tools:context=".FragmentOsdBaseClass">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/okBackgroundColor"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/battery_history"
|
||||
android:textColor="@color/okTextColor" />
|
||||
|
||||
|
||||
<com.github.mikephil.charting.charts.LineChart
|
||||
android:id="@+id/lineChart"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
</com.github.mikephil.charting.charts.LineChart>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
@@ -566,4 +566,6 @@
|
||||
<string name="heart_rate_history_bpm">"Heart Rate History (bpm): "</string>
|
||||
<string name="minutes">minutes</string>
|
||||
<string name="algorithms">"Algorithms: "</string>
|
||||
<string name="battery_history">Battery History</string>
|
||||
<string name="watch_batt_hist">Watch Battery History (%)</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user