MCPcopy Index your code
hub / github.com/Jaouan/Revealator

github.com/Jaouan/Revealator @1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.1 ↗ · + Follow
63 symbols 115 edges 11 files 42 documented · 67%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Android Revealator

Release Android Arsenal API

An helper to circle reveal/unreveal a view easily, with translations and childs animations. The libraries is Android 15+ compatible.

demo demo demo

Installation

Gradle

repositories {
    maven { url "https://jitpack.io" }
}
compile 'com.github.jaouan:revealator:1.1.0'

Usage

Just put the view you want to animate in a io.codetail.widget.RevealFrameLayout...

<io.codetail.widget.RevealFrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <FrameLayout
            android:id="@+id/the_awesome_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/colorAccent"
            android:visibility="invisible">

                      <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="Lorem ipsum" />


        </FrameLayout>

    </io.codetail.widget.RevealFrameLayout>

... and use the Revealator's magic to reveal...

Revealator.reveal( theAwesomeViewYouWantToReveal )
    .from( theInitiatorViewYouWantToTranslate )
    .withCurvedTranslation()
    //.withCurvedTranslation(curvePoint)
    .withChildsAnimation()
    //.withDelayBetweenChildAnimation(...)
    //.withChildAnimationDuration(...)
    //.withTranslateDuration(...)
    //.withHideFromViewAtTranslateInterpolatedTime(...)
    //.withRevealDuration(...)
    //.withEndAction(...)
    .start();

... or unreveal.

Revealator.unreveal( theAwesomeViewYouWantToUnreveal )
    .to( theInitiatorViewYouWantToTranslateBack )
    .withCurvedTranslation()
    //.withCurvedTranslation(curvePoint)
    //.withUnrevealDuration(...)
    //.withTranslateDuration(...)
    //.withShowFromViewInterpolatedDuration(...)
    //.withEndAction(...)
    .start();

References

This project uses : - ozodrukh's CircularReveal for Android 4 compatibility. - guohai's ArcTranslateAnimation for curved translation.

License

Apache License Version 2.0

Core symbols most depended-on inside this repo

start
called by 4
revealator/src/main/java/com/jaouan/revealator/RevealBuilder.java
run
called by 3
revealator/src/main/java/com/jaouan/revealator/RevealBuilder.java
getCenterLocationsDelta
called by 2
revealator/src/main/java/com/jaouan/revealator/RevealatorHelper.java
withCurvedTranslation
called by 2
revealator/src/main/java/com/jaouan/revealator/RevealBuilder.java
revealViewAndChilds
called by 2
revealator/src/main/java/com/jaouan/revealator/RevealBuilder.java
calculateBezier
called by 2
revealator/src/main/java/com/jaouan/revealator/animations/BezierTranslateAnimation.java
translateAndHideView
called by 1
revealator/src/main/java/com/jaouan/revealator/RevealatorHelper.java
showAndTranslateView
called by 1
revealator/src/main/java/com/jaouan/revealator/RevealatorHelper.java

Shape

Method 52
Class 11

Languages

Java100%

Modules by API surface

revealator/src/main/java/com/jaouan/revealator/RevealBuilder.java15 symbols
revealator/src/main/java/com/jaouan/revealator/RevealatorHelper.java11 symbols
revealator/src/main/java/com/jaouan/revealator/UnrevealBuilder.java10 symbols
app/src/main/java/com/jaouan/revealatorlib/ExempleActivity.java7 symbols
revealator/src/main/java/com/jaouan/revealator/animations/BezierTranslateAnimation.java5 symbols
revealator/src/main/java/com/jaouan/revealator/animations/AnimationListenerAdapter.java4 symbols
revealator/src/main/java/com/jaouan/revealator/Revealator.java3 symbols
revealator/src/test/java/com/jaouan/revealator/ExampleUnitTest.java2 symbols
revealator/src/androidTest/java/com/jaouan/revealator/ApplicationTest.java2 symbols
app/src/test/java/com/jaouan/revealatorlib/ExampleUnitTest.java2 symbols
app/src/androidTest/java/com/jaouan/revealatorlib/ApplicationTest.java2 symbols

For agents

$ claude mcp add Revealator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact