traex / RippleEffect

Implementation of Ripple effect from Material Design for Android API 9+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

disable click on rippleView

pishguy opened this issue · comments

Hi, when i use this library inside of any view such as LinearLayout or etc, parent doesnt clickable and when i click on parent ripple that doesnt work, for example:

<LinearLayout
    android:id="@+id/market_lists_root"
    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="wrap_content"
    android:orientation="vertical">

    <android.support.v7.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:elevation="0dp">

        <com.andexert.library.RippleView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clickable="false"
            app:rv_type="rectangle">

            <ImageView
                android:id="@+id/market_thumbnail"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_gravity="center"
                android:scaleType="centerCrop"/>

        </com.andexert.library.RippleView>

click on market_lists_root doesnt work