Display repetition count for last week, month, etc

Closes #21
This commit is contained in:
2016-03-14 19:07:32 -04:00
parent dfbcf78dd7
commit babf7d64f0
11 changed files with 391 additions and 20 deletions

View File

@@ -40,12 +40,74 @@
<org.isoron.uhabits.views.RingView
android:id="@+id/scoreRing"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:label="@string/habit_strength"/>
</LinearLayout>
<LinearLayout
style="@style/cardStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="top|start">
<TextView
android:id="@+id/tvCount"
style="@style/cardHeaderStyle"
android:text="Repetitions"/>
<LinearLayout
android:id="@+id/llRepetition"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<org.isoron.uhabits.views.RepetitionCountView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
app:label="Month"
app:interval="31"
app:textSize="34"/>
<org.isoron.uhabits.views.RepetitionCountView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
app:label="Quarter"
app:interval="92"
app:textSize="34"/>
<org.isoron.uhabits.views.RepetitionCountView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
app:label="Year"
app:interval="365"
app:textSize="34"/>
<org.isoron.uhabits.views.RepetitionCountView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
app:label="All time"
app:interval="0"
app:textSize="34"/>
</LinearLayout>
</LinearLayout>
<LinearLayout style="@style/cardStyle">
<TextView