Clearing stats
This commit is contained in:
@@ -26,6 +26,21 @@
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
android:visibility="gone"
|
||||
app:hideAnimationBehavior="outward"
|
||||
app:layout_constraintBottom_toBottomOf="@id/appbar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/appbar"
|
||||
app:showAnimationBehavior="inward"
|
||||
app:trackCornerRadius="0dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<org.koitharu.kotatsu.stats.ui.views.PieChartView
|
||||
android:id="@+id/chart"
|
||||
android:layout_width="0dp"
|
||||
|
||||
12
app/src/main/res/menu/opt_stats.xml
Normal file
12
app/src/main/res/menu/opt_stats.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_clear"
|
||||
android:title="@string/clear_stats"
|
||||
android:titleCondensed="@string/clear"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
@@ -608,4 +608,7 @@
|
||||
<string name="other_manga">Other manga</string>
|
||||
<string name="less_than_minute">Less than a minute</string>
|
||||
<string name="statistics">Statistics</string>
|
||||
<string name="clear_stats">Clear statistics</string>
|
||||
<string name="stats_cleared">Statistics cleared</string>
|
||||
<string name="clear_stats_confirm">Do you really want to clear all reading statistics? This action cannot be undone.</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user