Use horizontal and vertical divider attrs

pull/935/head
Alex Baker 5 years ago
parent 23687a4bd1
commit 065c38403f

@ -9,6 +9,5 @@
<color name="drawer_color_selected">@color/drawer_background_dark_selected</color> <color name="drawer_color_selected">@color/drawer_background_dark_selected</color>
<color name="text_secondary">@color/white_70</color> <color name="text_secondary">@color/white_70</color>
<color name="text_tertiary">@color/white_50</color> <color name="text_tertiary">@color/white_50</color>
<color name="divider">@color/white_12</color>
<color name="overdue">@color/overdue_87</color> <color name="overdue">@color/overdue_87</color>
</resources> </resources>

@ -128,7 +128,6 @@
<color name="drawer_color_selected">@color/drawer_background_light_selected</color> <color name="drawer_color_selected">@color/drawer_background_light_selected</color>
<color name="text_secondary">@color/black_54</color> <color name="text_secondary">@color/black_54</color>
<color name="text_tertiary">@color/black_38</color> <color name="text_tertiary">@color/black_38</color>
<color name="divider">@color/black_12</color>
</resources> </resources>

@ -93,18 +93,16 @@
<!--=============================================== MainActivity == --> <!--=============================================== MainActivity == -->
<style name="divider"> <style name="vertical_divider">
<item name="android:background">@color/divider</item>
</style>
<style name="vertical_divider" parent="divider">
<item name="android:layout_height">match_parent</item> <item name="android:layout_height">match_parent</item>
<item name="android:layout_width">1dp</item> <item name="android:layout_width">1dp</item>
<item name="android:background">?attr/dividerVertical</item>
</style> </style>
<style name="horizontal_divider" parent="divider"> <style name="horizontal_divider">
<item name="android:layout_width">match_parent</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item> <item name="android:layout_height">1dp</item>
<item name="android:background">?attr/dividerHorizontal</item>
</style> </style>
<style name="task_edit_row_divider" parent="horizontal_divider"> <style name="task_edit_row_divider" parent="horizontal_divider">

Loading…
Cancel
Save