CircularReveal icon indicating copy to clipboard operation
CircularReveal copied to clipboard

Problems with Activity containing WebView

Open ghost opened this issue 9 years ago • 3 comments

The reveal effect is not showing above the WebView, but it is below the web view in an activity.

XML:

<?xml version="1.0" encoding="utf-8"?>
<io.codetail.widget.RevealFrameLayout 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">

    <LinearLayout
        android:id="@+id/myLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.v7.widget.CardView
            android:id="@+id/myCard"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:cardUseCompatPadding="true"
            app:contentPadding="5dp">

            <WebView
                android:id="@+id/myWeb"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />

        </android.support.v7.widget.CardView>

    </LinearLayout>

</io.codetail.widget.RevealFrameLayout>

ACTIVITY:

containerX = (myLayout.getLeft() + myLayout.getRight()) / 2;
    containerY = (myLayout.getTop() + myLayout.getBottom()) / 2;
    finalRadius = Math.max(myLayout.getWidth(), myLayout.getHeight());

    animator = ViewAnimationUtils.createCircularReveal(myLayout, containerX, containerY, 0, finalRadius);
    animator.setDuration(1000);
    animator.addListener(openAnimatorListener);
    animator.start();

ghost avatar Sep 14 '15 12:09 ghost

i have the same problem

ayaseruri avatar Jan 16 '16 09:01 ayaseruri

@MrDarpan @ayaseruri Did you solved the problem, i also have the same problem

t2314862168 avatar Mar 28 '16 03:03 t2314862168

do not

ayaseruri avatar Apr 01 '16 10:04 ayaseruri