Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Activity containing WebView #51

Open
ghost opened this issue Sep 14, 2015 · 3 comments
Open

Problems with Activity containing WebView #51

ghost opened this issue Sep 14, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 14, 2015

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();
@ayaseruri
Copy link

i have the same problem

@t2314862168
Copy link

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

@ayaseruri
Copy link

do not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants