Extract common style

pull/69/head
Alinson S. Xavier 10 years ago
parent 606f66b8d9
commit ded8800017

@ -65,44 +65,28 @@
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="@string/month"
app:interval="31"
app:textSize="34"/>
app:textSize="34"
style="@style/repetitionCountStyle"/>
<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:interval="92"
app:textSize="34"/>
app:textSize="34"
style="@style/repetitionCountStyle"/>
<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:interval="365"
app:textSize="34"/>
app:textSize="34"
style="@style/repetitionCountStyle"/>
<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:interval="0"
app:textSize="34"/>
app:textSize="34"
style="@style/repetitionCountStyle"/>
</LinearLayout>

@ -93,4 +93,12 @@
<item name="android:paddingTop">12dp</item>
</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>

Loading…
Cancel
Save