Fixed tracking cardview + readded AMOLED theme. (#798)

* Fixed cardview margin for sources

* Added AMOLED again

* changed padding to margin
This commit is contained in:
Bram van de Kerkhof
2017-05-16 10:18:46 +02:00
committed by inorichi
parent 55be9b9ca5
commit 062788f222
7 changed files with 71 additions and 63 deletions

View File

@@ -7,7 +7,7 @@
<dimen name="margin_left">16dp</dimen>
<dimen name="margin_right">16dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="card_margin">16dp</dimen>
<dimen name="space_between_cards">4dp</dimen>
<dimen name="fab_size">56dp</dimen>
<dimen name="dialog_content_padding">24dp</dimen>

View File

@@ -146,12 +146,18 @@
<style name="Theme.Widget.CardView" parent="CardView">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:padding">@dimen/material_component_cards_top_and_bottom_padding</item>
<item name="android:layout_marginTop">@dimen/material_component_cards_space_between_cards</item>
<item name="android:layout_marginBottom">@dimen/material_component_cards_space_between_cards</item>
<item name="android:layout_marginStart">@dimen/material_component_cards_space_between_cards</item>
<item name="android:layout_marginEnd">@dimen/material_component_cards_space_between_cards</item>
<item name="cardBackgroundColor">?attr/background_card</item>
<item name="cardElevation">3dp</item>
<item name="cardUseCompatPadding">true</item>
<item name="cardCornerRadius">2dp</item>
<item name="android:layout_marginLeft">2dp</item>
<item name="android:layout_marginRight">2dp</item>
<item name="cardElevation">2dp</item>
</style>
<style name="Theme.Widget.CardView.Item">
<item name="android:layout_marginTop">@dimen/space_between_cards</item>
<item name="android:layout_marginBottom">@dimen/space_between_cards</item>
</style>
<style name="Theme.Widget.GridView">