Created
May 26, 2015 01:15
-
-
Save enginebai/bab2c77f60da2aace5f1 to your computer and use it in GitHub Desktop.
CardView + Ripple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v7.widget.CardView | |
android:id="@+id/card_movie_list_item" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
xmlns:custom="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_margin="5dp" | |
card_view:cardCornerRadius="4dp" | |
card_view:cardPreventCornerOverlap="false"> | |
<com.balysv.materialripple.MaterialRippleLayout | |
android:id="@+id/ripple" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:mrl_rippleBackground="@android:color/white" | |
app:mrl_rippleColor="@color/primary" | |
style="@style/Ripple" | |
> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<!-- add you ui components --> | |
</LinearLayout> | |
</com.balysv.materialripple.MaterialRippleLayout> | |
</android.support.v7.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lib/build.gradle