summaryrefslogtreecommitdiff
path: root/ui/statistics
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-05-15 09:18:12 +0200
committerByteHamster <info@bytehamster.com>2022-05-15 09:24:03 +0200
commit28f2706f328ac0555ef470426f930a44d1c90ce3 (patch)
tree4f6fd01cb9d3bbfc3e36564a157083cc7553d859 /ui/statistics
parent8cac0c71e4cfc76f01b5b8c3145e865b9f13cc99 (diff)
downloadAntennaPod-28f2706f328ac0555ef470426f930a44d1c90ce3.zip
Show spinner while loading statistics
Diffstat (limited to 'ui/statistics')
-rw-r--r--ui/statistics/build.gradle2
-rw-r--r--ui/statistics/src/main/res/layout/feed_statistics.xml15
2 files changed, 12 insertions, 5 deletions
diff --git a/ui/statistics/build.gradle b/ui/statistics/build.gradle
index cca840989..53ebd5acc 100644
--- a/ui/statistics/build.gradle
+++ b/ui/statistics/build.gradle
@@ -30,4 +30,6 @@ dependencies {
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
+ implementation "com.joanzapata.iconify:android-iconify-fontawesome:$iconifyVersion"
+ implementation "com.joanzapata.iconify:android-iconify-material:$iconifyVersion"
}
diff --git a/ui/statistics/src/main/res/layout/feed_statistics.xml b/ui/statistics/src/main/res/layout/feed_statistics.xml
index 7897a7d5f..6b9a7fa4c 100644
--- a/ui/statistics/src/main/res/layout/feed_statistics.xml
+++ b/ui/statistics/src/main/res/layout/feed_statistics.xml
@@ -13,12 +13,13 @@
android:layout_height="wrap_content"
android:text="@string/statistics_episodes_started_total" />
- <TextView
+ <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/startedTotalLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
+ android:text="@string/wait_icon"
tools:text="0 / 0" />
</TableRow>
@@ -30,12 +31,13 @@
android:layout_height="wrap_content"
android:text="@string/statistics_time_played" />
- <TextView
+ <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/timePlayedLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
+ android:text="@string/wait_icon"
tools:text="0 min" />
</TableRow>
@@ -48,12 +50,13 @@
android:layout_height="wrap_content"
android:text="@string/statistics_total_duration" />
- <TextView
+ <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/totalDurationLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
+ android:text="@string/wait_icon"
tools:text="0 min" />
</TableRow>
@@ -65,12 +68,13 @@
android:layout_height="wrap_content"
android:text="@string/statistics_episodes_on_device" />
- <TextView
+ <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/onDeviceLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
+ android:text="@string/wait_icon"
tools:text="0" />
</TableRow>
@@ -82,12 +86,13 @@
android:layout_height="wrap_content"
android:text="@string/statistics_space_used" />
- <TextView
+ <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/spaceUsedLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
+ android:text="@string/wait_icon"
tools:text="0 MB" />
</TableRow>