Library project to display DialogFragment with a blur effect.

Overview

BlurDialogFragment

This project allows to display DialogFragment with a burring effect behind. The blurring part is achieved through FastBlur algorithm thanks to the impressive work of Pavlo Dudka (cf Special Thanks).

Maven Central

Android Arsenal

Sample app

Download the sample app on the Google Play store.

Gradle dependency

Since the library is promoted on maven central, just add a new gradle dependency :

    compile 'fr.tvbarthel.blurdialogfragment:lib:2.2.0'

Don't forget to check the [Use RenderScript in Your Project] (#use-renderscript-in-your-project) if you're planning to use it.

Example

Activity with action bar [blurRadius 4, downScaleFactor 5.0] : action bar blur

Fullscreen activity [blurRadius 2, downScaleFactor 8.0] : full screen blur

Use RenderScript in Your Project

Simply add this line to your build.gradle

defaultConfig {
    ...
    renderscriptTargetApi 22
    renderscriptSupportModeEnabled true
    ...
}

Simple usage using inheritance

If you are using android.app.DialogFragment : extends BlurDialogFragment. Play with the blur radius and the down scale factor to obtain the perfect blur.

Don't forget to enable log if you want to keep on eye the performance.

/**
 * Simple fragment with blurring effect behind.
 */
public class SampleDialogFragment extends BlurDialogFragment {

}

If you are using android.support.v4.app.DialogFragment : extends SupportBlurDialogFragment. Play with the blur radius and the down scale factor to obtain the perfect blur.

Don't forget to enable log in order to keep on eye the performance.

/**
 * Simple fragment with blurring effect behind.
 */
public class SampleDialogFragment extends SupportBlurDialogFragment {

}

Customize your blurring effect

/**
 * Simple fragment with a customized blurring effect.
 */
public class SampleDialogFragment extends BlurDialogFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        ...
    }
    
    @Override
    protected float getDownScaleFactor() {
        // Allow to customize the down scale factor.
        return 5.0;
    }

    @Override
    protected int getBlurRadius() {
        // Allow to customize the blur radius factor.
        return 7;
    }
    
    @Override
    protected boolean isActionBarBlurred() {
        // Enable or disable the blur effect on the action bar.
        // Disabled by default.
        return true;
    }
    
    @Override
    protected boolean isDimmingEnable() {
        // Enable or disable the dimming effect.
        // Disabled by default.
        return true;
    }

    @Override
    protected boolean isRenderScriptEnable() {
        // Enable or disable the use of RenderScript for blurring effect
        // Disabled by default.
        return true;
    }
    
    @Override
    protected boolean isDebugEnable() {
        // Enable or disable debug mode.
        // False by default.
        return true;
    }
    ...

Default values are set to :

/**
* Since image is going to be blurred, we don't care about resolution.
* Down scale factor to reduce blurring time and memory allocation.
*/
static final float DEFAULT_BLUR_DOWN_SCALE_FACTOR = 4.0f;

/**
* Radius used to blur the background
*/
static final int DEFAULT_BLUR_RADIUS = 8;

/**
* Default dimming policy.
*/
static final boolean DEFAULT_DIMMING_POLICY = false;

/**
* Default debug policy.
*/
static final boolean DEFAULT_DEBUG_POLICY = false;

/**
* Default action bar blurred policy.
*/
static final boolean DEFAULT_ACTION_BAR_BLUR = false;

/**
* Default use of RenderScript.
*/
static final boolean DEFAULT_USE_RENDERSCRIPT = false;

Avoiding inheritance

If you want to avoid inheritance, use directly the BlurEngine. Don't forget to link the engine to the lifecycle of your DialogFragment.

/**
 * Your blur fragment directly using BlurEngine.
 */
public class SampleDialogFragment extends MyCustomDialogFragment {

     /**
     * Engine used to blur.
     */
    private BlurDialogEngine mBlurEngine;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        mBlurEngine = new BlurDialogEngine(getActivity());
        mBlurEngine.setBlurRadius(8);
        mBlurEngine.setDownScaleFactor(8f);
        mBlurEngine.debug(true);
        mBlurEngine.setBlurActionBar(true);
        mBlurEngine.setUseRenderScript(true);
    }
    
    @Override
    public void onResume() {
        super.onResume();
        mBlurEngine.onResume(getRetainInstance());
    }
    
     @Override
    public void onDismiss(DialogInterface dialog) {
        super.onDismiss(dialog);
        mBlurEngine.onDismiss();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        mBlurEngine.onDetach();
    }

    @Override
    public void onDestroyView() {
        if (getDialog() != null) {
            getDialog().setDismissMessage(null);
        }
        super.onDestroyView();
    }
    
    ...
}

Benchmark

Benchmark outdated. Please refer to the debug option of the sample in order to compare FastBlur and RenderScript.

We used a Nexus 5 running a 4.4.4 stock rom for this bench.

Down scale factor 8.0 & Blur Radius 8 : Screenshot

Radius : 8
Down Scale Factor : 8.0
Blurred achieved in : 18 ms
Allocation : 4320ko (screen capture) + 270ko (FastBlur)

Down scale factor 6.0 & Blur Radius 12 : Screenshot

Radius : 12
Down Scale Factor : 6.0
Blurred achieved in : 31 ms
Allocation : 4320ko (screen capture) + 360ko (FastBlur)

Down scale factor 4.0 & Blur Radius 20 : Screenshot

Radius : 20
Down Scale Factor : 4.0
Blurred achieved in : 75 ms
Allocation : 4320ko (screen capture) + 540ko (FastBlur)

Known bugs

  • Wrong top offset when using the following line in application Theme :
<item name="android:windowActionBarOverlay">true</item>

RenderScript or not RenderScript

Thanks to amasciul blurring effect can now be achieved using ScriptIntrinsicBlur (v1.1.0).

Find more information on the memory trace and on the execution time.

Change logs

  • 2.2.0 : Fix preDrawListener registration when there was no certitude that onPreDraw will be called thanks to Serkan Modoğlu and Mark Mooibroek reports.
  • 2.1.6 : Fix orientation change as well as retainInstance thanks to IskuhiSargsyan report and tweak FastBlur implementation to avoid the allocation of 3 additional arrays for RGB channels thanks to sh1 feedback.
  • 2.1.5 : Minor fixes thanks to Edward S and Tommy Chan.
  • 2.1.4 : Fix NPE during the blurring process thanks to Anth06ny, jacobtabak and serega2593 reports.
  • 2.1.3 : Remove unused resources thanks to ligol report.
  • 2.1.2 : Rework support of translucent status bar thanks to wangsai-silence report.
  • 2.1.1 : Fix usage without renderscript as VerifyError was fired.
  • 2.1.0 : Support AppCompatActivity and fix several bugs thanks to jacobtabak.
  • 2.0.1 : BlurEngine is back again (restore "avoiding inheritance" usage, thanks to sergiopantoja report).
  • 2.0.0 : Min SDK 9+, don't forget to check the above section "Use RenderScript in Your Project". (thanks to ligol).
  • 1.1.0 : Allow to use RenderScript (thank to amasciul).
  • 1.0.0 : Animate blurring effect, support tablet, tweak nav bar offset and reduce memory allocation.
  • 0.1.2 : Fix bottom offset introduce by the navigation bar on Lollipop.
  • 0.1.1 : Fix top offset when using Toolbar.
  • 0.1.0 : Support appcompat-v7:21.
  • 0.0.9 : Change default blur radius (8) and default down scale factor (4).
  • 0.0.8 : Fix NoClassDefFound.
  • 0.0.7 : Avoid using inheritance through BlurDialogEngine if needed.

Contributing

Contributions are welcome (: You can contribute through GitHub by forking the repository and sending a pull request.

When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code fit these convention by running gradlew check.

Credits

Credits go to Thomas Barthélémy https://github.com/tbarthel-fr and Vincent Barthélémy https://github.com/vbarthel-fr.

License

Copyright (C) 2014 tvbarthel

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Special Thanks to ...

Pavlo Dudka https://github.com/paveldudka/ , for his impressive article on Advanced blurring techniques.

Vincent Brison https://github.com/vincentbrison , for his early day support.

Alexandre Masciulli https://github.com/amasciul , for the integration of RenderScript.

Comments
  • How to make the dialog background transparent?

    How to make the dialog background transparent?

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@android:color/transparent"
              android:gravity="center"
              android:orientation="vertical">
    
       <Button
        android:id="@id/cancelButton"
        android:layout_width="300dp"
        android:layout_height="50dp"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_margin="10dp"
        android:background="@drawable/btn_morning_bg_blue"
        android:text="@string/cancel"
        android:textColor="@android:color/white"/>
      </LinearLayout>
    

    I set the background of parent layout to transparent but i get this: screen shot 1394-05-14 at 10 24 19

    opened by Morteza-Rastgoo 6
  • NPE at BlurDialogEngine#blur() during doInBackground

    NPE at BlurDialogEngine#blur() during doInBackground

    java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:838) Caused by: java.lang.NullPointerException at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:273) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$100(BlurDialogEngine.java:30) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:353) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:309) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask.run(FutureTask.java:234) ... 4 more

    bug 
    opened by vbarthel-fr 6
  • Background resized when keyboard is present

    Background resized when keyboard is present

    I've noticed whenever the keyboard is available in the dialog fragment, then the background gets resized to fit the entire screen. Similar to as if the activity had windowSoftInputMode set to adjustResize. Is this an issue with the library or with DialogFragments in general maybe?

    I've noticed https://github.com/Manabu-GT/EtsyBlur doesn't have the same effect.

    opened by jpshelley 5
  • Library not importing

    Library not importing

    Not sure if that's the best title, but I'm trying to integrate this with my project. I put the following line into my project specific gradle dependencies: compile 'fr.tvbarthel.blurdialogfragment:lib:2.1.2'

    Then I sync gradle, wait for that to finish, and try to import BlurDialogFragment or SupportBlurDialogFragment with no luck. I haven't had any issues integrating with other open source libraries recently. Are there any other requirements/quirks I should be aware of when using this?

    Thanks

    opened by spung 4
  • Not blurring OK

    Not blurring OK

    screenshot_2015-01-15-09-38-10

    You can see in this screen, that it's not correctly blurred. The layout is:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout 
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true">
    
        <android.support.v7.widget.Toolbar
        android:id="@id/toolbar"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:minHeight="?attr/actionBarSize"
        android:background="@color/clear_grey"
        app:theme="@style/ThemeOverlay.AppCompat.ActionBar"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"/>
    
        <WebView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/webView" />
    </LinearLayout>
    
    opened by alorma 4
  • Caused by java.lang.ArrayIndexOutOfBoundsException

    Caused by java.lang.ArrayIndexOutOfBoundsException

    Last week my project got many crash and I saw below exception, It looks like related to your library project,

    Fatal Exception: java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by java.lang.ArrayIndexOutOfBoundsException: length=20736; index=21079 at fr.tvbarthel.lib.blurdialogfragment.FastBlurHelper.doBlur(FastBlurHelper.java:132) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:396) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$100(BlurDialogEngine.java:41)

    You can help me to check to avoid this crash? Thank you so much,

    opened by huytower 3
  • Attempt to invoke virtual method on a null object reference

    Attempt to invoke virtual method on a null object reference

    java.lang.RuntimeException: Unable to destroy activity {simplecode.kz.megacam/simplecode.kz.megacam.module.player.PlayerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.cancel(boolean)' on a null object reference
           at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4045)
           at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4063)
           at android.app.ActivityThread.access$1400(ActivityThread.java:144)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1413)
           at android.os.Handler.dispatchMessage(Handler.java:102)
           at android.os.Looper.loop(Looper.java:155)
           at android.app.ActivityThread.main(ActivityThread.java:5696)
           at java.lang.reflect.Method.invoke(Method.java)
           at java.lang.reflect.Method.invoke(Method.java:372)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.cancel(boolean)' on a null object reference
           at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.onDestroy(BlurDialogEngine.java:199)
           at fr.tvbarthel.lib.blurdialogfragment.BlurDialogFragment.onDestroy(BlurDialogFragment.java:102)
           at android.app.Fragment.performDestroy(Fragment.java:2362)
           at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1065)
           at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115)
           at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1097)
           at android.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:2055)
           at android.app.Activity.performDestroy(Activity.java:6136)
           at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1169)
           at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4025)
           at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4063)
           at android.app.ActivityThread.access$1400(ActivityThread.java:144)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1413)
           at android.os.Handler.dispatchMessage(Handler.java:102)
           at android.os.Looper.loop(Looper.java:155)
           at android.app.ActivityThread.main(ActivityThread.java:5696)
           at java.lang.reflect.Method.invoke(Method.java)
           at java.lang.reflect.Method.invoke(Method.java:372)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
           ```
    
    opened by Nook2007 3
  • Blur Background goes up.

    Blur Background goes up.

    Hello,

    First of all thanks for awesome library, and sorry for my English.

    I have bug on Nexus 5 running a 5.1.1 . In all cases background view goes up. Here are screenshots from your app: 1 2

    Regards

    opened by Vram-Voskanyan 3
  • Can't use without inheritance since BlurDialogEngine is now package-private

    Can't use without inheritance since BlurDialogEngine is now package-private

    Great library!

    I see that commit be45e05afb989a040b49cdaffce2d439cf27475c made BlurDialogEngine a package-private class, which means we can't use this library without inheritance. Is this a bug or does this section of the README not apply for version 2.0.0?

    Thanks, Sergio

    bug 
    opened by sergiopantoja 3
  • [BlurEngine] fix delayed blur due to pre-draw registration

    [BlurEngine] fix delayed blur due to pre-draw registration

    Blame myself on this.

    When requesting a blur, there no certitude that a new draw pass will be performed for the holding activity decor view. Therefore registering a onPreDrawListener was completly silly if the holding activity decor view was already displayed.

    This was leading to several crashes due to registered onPreDrawListener triggered only once the dialog fragment was destroyed. HoldingActivity was at this time null and an NPE was fired. #62

    A onPreDrawListener is still needed to handle a configuration change. In fact, dialogs fragments are attached again before activity UI is drawn. That's why we have to wait onPreDraw to ensure that blurred won't be performed on black pixels. But instead on registering the onPreDrawListener every times, we check now that the decor view isn't already shown. If it's the case, we directly launch the blur process.

    Hope I won't release new critical bugs like this in the futur...

    reviewed 
    opened by tbarthel-fr 2
  • NPE press back button on BlurDialogFragment

    NPE press back button on BlurDialogFragment

    NPE press back button when MyDialogFragment which extends from BlurDialogFragment is open BlurDialogFragment Library Version is 2.1.6 About My Project
    compileSdkVersion 23 buildToolsVersion "23.0.3" minSdkVersion 15 targetSdkVersion 23

    Process: my.packagenamexxx, PID: 21110 java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$1.onPreDraw(BlurDialogEngine.java:170) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:921) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2164) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1191) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6642) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) at android.view.Choreographer.doCallbacks(Choreographer.java:590) at android.view.Choreographer.doFrame(Choreographer.java:560) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5951) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

    bug 
    opened by sekomod 2
  • build issues on Android X

    build issues on Android X

    Hi, Thanks for providing the library.

    I tested it out on my project which was recently migrated to android X. But, it's causing build errors in the project. I need to know, if this library does have support for android X projects or not ?

    opened by vbv1 4
  • Blur Background move up when using Collapsing toolbar(With Appbarlayout)

    Blur Background move up when using Collapsing toolbar(With Appbarlayout)

    If I use normal toolbar without Appbarlayout, it works fine but when I use Appbarlayout for collapsing purpose, then the blurred background move up(hiding half of the toolbar)

    opened by ajaystha005 1
  • The Dismiss Listener and Back Button press

    The Dismiss Listener and Back Button press

    -is there any way to prevent the dismiss functionality ? -can I override the onBackPressed to close the activity when the dialog is shown? thanks in advance

    opened by abdulmalekDery 0
Releases(v2.1.6)
  • v2.1.6(May 12, 2016)

    • 2.1.6 : Fix orientation change as well as retainInstance thanks to IskuhiSargsyan report and tweak FastBlur implementation to avoid the allocation of 3 additional arrays for RGB channels thanks to sh1 feedback.
    • 2.1.5 : Minor fixes thanks to Edward S and Tommy Chan.
    • 2.1.4 : Fix NPE during the blurring process thanks to Anth06ny, jacobtabak and serega2593 reports.
    • 2.1.3 : Remove unused resources thanks to ligol report.
    • 2.1.2 : Rework support of translucent status bar thanks to wangsai-silence report.
    • 2.1.1 : Fix usage without renderscript as VerifyError was fired.
    • 2.1.0 : Support AppCompatActivity and fix several bugs thanks to jacobtabak.
    • 2.0.1 : BlurEngine is back again (restore "avoiding inheritance" usage, thanks to sergiopantoja report).
    • 2.0.0 : Min SDK 9+, don't forget to check the above section "Use RenderScript in Your Project". (thanks to ligol).
    Source code(tar.gz)
    Source code(zip)
    sample-release.apk(6.23 MB)
  • v2.0.0(Mar 29, 2015)

  • v1.1.0(Feb 21, 2015)

    Enable/disable the dimming effect (thanks to jacobtabak contribution). Enable/disable the use of RenderScript (thanks to amasciul contribution). Enable/disable the blur effect on the action bar. Add smooth transition between the background and the blurred one. Several performance improvements.

    Source code(tar.gz)
    Source code(zip)
    sample.apk(4.14 MB)
Owner
tvbarthel
tvbarthel
Library provides an easy way to a add shimmer effect in Android Compose project.

Add a shimmer effect to the layout in Android Compose

Valery 66 Dec 14, 2022
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

Android StackBlur Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. Th

Enrique López Mañas 3.6k Dec 29, 2022
ShimmerTextView is a simple library to integrate shimmer effect in your TextView.

ShimmerTextView ShimmerTextView is a simple library to integrate shimmer effect in your TextView. Key features Set a base color in ShimmerTextView. Se

MindInventory 22 Sep 7, 2022
Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon

MultiImageView Library for display a few images in one MultiImageView like avatar of group chat Who we are Need iOS and Android apps, MVP development

Stfalcon LLC 468 Dec 9, 2022
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

android-flip Aphid FlipView is a UI component to accomplish the flipping animation like Flipboard does. A pre-built demo APK file for Android OS 2.2+

Bo 2.8k Dec 21, 2022
Android ImageViews animated by Ken Burns Effect

KenBurnsView Android library that provides an extension to ImageView that creates an immersive experience by animating its drawable using the Ken Burn

Flávio Faria 2.7k Jan 2, 2023
ViewAnimator view with a lollipop style reveal effect

ViewRevealAnimator Widget ViewAnimator view with a lollipop style reveal effect. Regular animation can be set (just like the default ViewAnimator) for

Alessandro Crugnola 339 Jun 3, 2022
Android L Ripple effect wrapper for Views

Material Ripple Layout Ripple effect wrapper for Android Views Including in your project compile 'com.balysv:material-ripple:1.0.2' Check for latest v

Balys Valentukevicius 2.3k Dec 29, 2022
Implementation of Ripple effect from Material Design for Android API 9+

RippleEffect ExpandableLayout provides an easy way to create a view called header with an expandable view. Both view are external layout to allow a ma

Robin Chutaux 4.9k Dec 30, 2022
[] Easily have blurred and transparent background effect on your Android views.

##[DEPRECATED] BlurBehind Easily have blurred and transparent background effect on your Android views. Before API level 14 there was a Window flag cal

Gokberk Ergun 516 Nov 25, 2022
explosive dust effect for views

ExplosionField explosive dust effect for views Getting started In your build.gradle: dependencies { compile 'tyrantgit:explosionfield:1.0.1' } Ex

null 3.6k Dec 29, 2022
Glass-break effect for views

BrokenView Glass-break effect for views. Demo Download APK Usage Android Studio dependencies { compile 'com.zys:brokenview:1.0.3' } Eclipse Just pu

null 859 Dec 30, 2022
:sparkles: An easy way to implement an elastic touch effect for Android.

ElasticViews ✨ An easy way to implement an elastic touch effect for Android. Including in your project Gradle Add below codes to your root build.gradl

Jaewoong Eum 763 Dec 29, 2022
An easy, flexible way to add a shimmering effect to any view in an Android app.

Shimmer for Android Shimmer is an Android library that provides an easy way to add a shimmer effect to any view in your Android app. It is useful as a

Facebook 5.1k Dec 26, 2022
Memory efficient shimmering effect for Android applications by Supercharge.

DEPRECATED - ShimmerLayout Attention: This tool is now deprecated. Please switch to Shimmer for Android or any other shimmer effect solution. ShimmerL

Supercharge 2.5k Jan 4, 2023
A pager for Android with parallax effect

ParallaxPagerTransformer A pager transformer for Android with parallax effect Installation in your build.gradle file dependencies { // ... com

Javier Gonzalez 654 Dec 29, 2022
Wave effect of activity animation

WaveCompat Wave effect of activity animation How to use 1. Bind wave touch helper to a view which will start an activity when it clicked: WaveTouchHel

WangJie 348 Nov 29, 2022
"Gooey-Effect" for android-compose

Gooey effect for android-compose "Gooey" is a library made to use "gooey-effect" that exists as a CSS trick in android-compose. Download repositories

SeokHo-Im 5 Oct 12, 2022
Android GraphView is used to display data in graph structures.

GraphView Android GraphView is used to display data in graph structures. Overview The library is designed to support different graph layouts and curre

null 991 Dec 30, 2022