mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 09:38:52 -06:00
Simplify and optimize loading time of ShowHabitFragment
This commit is contained in:
@@ -53,75 +53,6 @@
|
||||
app:maxDiameter="80"
|
||||
app:textSize="@dimen/smallTextSize"/>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/smallDataViewStyle"
|
||||
android:orientation="vertical">
|
||||
|
||||
<org.isoron.uhabits.views.HabitStreakView
|
||||
android:id="@+id/smallStreakView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/best_streaks"
|
||||
android:layout_marginTop="9dp"
|
||||
android:textColor="@color/fadedTextColor"
|
||||
android:gravity="center"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/cardStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="top|start"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCount"
|
||||
style="@style/cardHeaderStyle"
|
||||
android:text="@string/number_of_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
|
||||
style="@style/smallDataViewStyle"
|
||||
app:interval="30"
|
||||
app:labelFormat="@string/last_x_days"
|
||||
app:labelValue="30"
|
||||
app:textSize="12"/>
|
||||
|
||||
<org.isoron.uhabits.views.RepetitionCountView
|
||||
style="@style/smallDataViewStyle"
|
||||
app:interval="92"
|
||||
app:labelFormat="@string/last_x_months"
|
||||
app:labelValue="4"
|
||||
app:textSize="12"/>
|
||||
|
||||
<org.isoron.uhabits.views.RepetitionCountView
|
||||
style="@style/smallDataViewStyle"
|
||||
app:interval="365"
|
||||
app:labelFormat="@string/last_x_months"
|
||||
app:labelValue="12"
|
||||
app:textSize="12"/>
|
||||
|
||||
<org.isoron.uhabits.views.RepetitionCountView
|
||||
style="@style/smallDataViewStyle"
|
||||
app:interval="0"
|
||||
app:label="@string/all_time"
|
||||
app:textSize="12"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user