mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Extract common style
This commit is contained in:
@@ -65,44 +65,28 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<org.isoron.uhabits.views.RepetitionCountView
|
<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="@string/month"
|
app:label="@string/month"
|
||||||
app:interval="31"
|
app:interval="31"
|
||||||
app:textSize="34"/>
|
app:textSize="34"
|
||||||
|
style="@style/repetitionCountStyle"/>
|
||||||
|
|
||||||
<org.isoron.uhabits.views.RepetitionCountView
|
<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="@string/quarter"
|
app:label="@string/quarter"
|
||||||
app:interval="92"
|
app:interval="92"
|
||||||
app:textSize="34"/>
|
app:textSize="34"
|
||||||
|
style="@style/repetitionCountStyle"/>
|
||||||
|
|
||||||
<org.isoron.uhabits.views.RepetitionCountView
|
<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="@string/year"
|
app:label="@string/year"
|
||||||
app:interval="365"
|
app:interval="365"
|
||||||
app:textSize="34"/>
|
app:textSize="34"
|
||||||
|
style="@style/repetitionCountStyle"/>
|
||||||
|
|
||||||
<org.isoron.uhabits.views.RepetitionCountView
|
<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="@string/all_time"
|
app:label="@string/all_time"
|
||||||
app:interval="0"
|
app:interval="0"
|
||||||
app:textSize="34"/>
|
app:textSize="34"
|
||||||
|
style="@style/repetitionCountStyle"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -93,4 +93,12 @@
|
|||||||
<item name="android:paddingTop">12dp</item>
|
<item name="android:paddingTop">12dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="repetitionCountStyle">
|
||||||
|
<item name="android:layout_width">0dp</item>
|
||||||
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:layout_weight">1</item>
|
||||||
|
<item name="android:layout_marginLeft">8dp</item>
|
||||||
|
<item name="android:layout_marginRight">8dp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user