Skip to content

Commit

Permalink
feat: Ripple effect in cards (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel authored and iamareebjamal committed Feb 27, 2019
1 parent e7a176d commit 466b611
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion app/src/main/res/layout-land/item_card_order_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
android:layout_margin="@dimen/layout_margin_large"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
app:cardElevation="@dimen/card_elevation"
android:foreground="?android:attr/selectableItemBackground">

<LinearLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_card_events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
android:layout_margin="@dimen/layout_margin_medium"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
app:cardElevation="@dimen/card_elevation"
android:foreground="?android:attr/selectableItemBackground">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_card_favorite_event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius">
app:cardCornerRadius="@dimen/card_corner_radius"
android:foreground="?android:attr/selectableItemBackground">

<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/shareFab"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_card_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
android:layout_margin="@dimen/layout_margin_medium"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
app:cardElevation="@dimen/card_elevation"
android:foreground="?android:attr/selectableItemBackground">

<LinearLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_card_order_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
android:layout_margin="@dimen/layout_margin_large"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
app:cardElevation="@dimen/card_elevation"
android:foreground="?android:attr/selectableItemBackground">

<LinearLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_card_similar_events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
android:layout_margin="@dimen/layout_margin_medium"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
app:cardElevation="@dimen/card_elevation"
android:foreground="?android:attr/selectableItemBackground">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/placeholder_item_card_events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
android:layout_margin="@dimen/layout_margin_medium"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="0dp">
app:cardElevation="0dp"
android:foreground="?android:attr/selectableItemBackground">

<LinearLayout
android:layout_width="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/placeholder_item_card_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="@dimen/card_corner_radius">
app:cardCornerRadius="@dimen/card_corner_radius"
android:foreground="?android:attr/selectableItemBackground">

<LinearLayout
android:layout_width="match_parent"
Expand Down

0 comments on commit 466b611

Please sign in to comment.