mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
44d2384aec
Add gridlayout dependency and use it instead of heavily nested linearlayouts (fragment_live_activity) or to simplify existing grid layouts.
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
grid:columnCount="2">
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.activities.charts.CustomBarChart
|
|
android:id="@+id/livechart_steps_per_minute_current"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"></nodomain.freeyourgadget.gadgetbridge.activities.charts.CustomBarChart>
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.activities.charts.CustomBarChart
|
|
android:id="@+id/livechart_steps_total"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"></nodomain.freeyourgadget.gadgetbridge.activities.charts.CustomBarChart>
|
|
|
|
<!--
|
|
<com.github.mikephil.charting.charts.PieChart
|
|
android:id="@+id/livechart_steps_total"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="20">
|
|
</com.github.mikephil.charting.charts.PieChart>
|
|
|
|
<com.github.mikephil.charting.charts.PieChart
|
|
android:id="@+id/livechart_steps_per_minute_current"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="20">
|
|
</com.github.mikephil.charting.charts.PieChart>
|
|
-->
|
|
|
|
<com.github.mikephil.charting.charts.LineChart
|
|
android:id="@+id/livechart_steps_per_minute_history"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"></com.github.mikephil.charting.charts.LineChart>
|
|
|
|
|
|
</android.support.v7.widget.GridLayout>
|