summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/statistics_listitem_total.xml
blob: f24f133985c8c546b28081bc34cca326da492dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="16dp">

    <de.danoeh.antennapod.view.PieChartView
            android:id="@+id/pie_chart"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="8dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

    <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/total_description"
            android:textSize="14sp"
            android:gravity="center_horizontal"
            android:layout_above="@+id/total_time"/>

    <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/total_time"
            android:textColor="?android:attr/textColorPrimary"
            android:gravity="center_horizontal"
            android:textSize="28sp"
            android:layout_marginBottom="16dp"
            android:layout_alignBottom="@id/pie_chart"
            tools:text="10.0 hours"/>

    <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="16dp"
            android:background="?android:attr/dividerVertical"
            android:layout_below="@+id/pie_chart"/>

</RelativeLayout>