Pop animation with circular dust effect for any view updation

Overview

Popview-Android

Pop animation with circular dust effect for any view updation

Android Arsenal

Screenshots

Getting Started

In your build.gradle

dependencies {
    compile 'rb.popview:popview:0.1.0'
}

Usage

Initialize PopField like so :

PopField popField = PopField.attach2window(activity);
Popping the view without replacement (1st icon)
popField.popView(view);
Popping the view and replacing with new view without animation (2nd icon)
popField.popView(view,newView);

Eg:

LayoutInflater layoutInflater = (LayoutInflater) getApplicationContext()        
 					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View addView = layoutInflater.inflate(R.layout.sampleview, null);         //Inflate new view from xml
TextView newTextView = (TextView) addView.findViewById(R.id.sampletextview);    //Reference the newview     
newTextView.setText("New Sample text");
popField.popView(view,addView);
Popping the view and replacing with new view with animation (3rd icon)
popField.popView(view,newView,true);

Eg:

LayoutInflater layoutInflater = (LayoutInflater) getApplicationContext()        
 					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View addView = layoutInflater.inflate(R.layout.sampleview, null);         //Inflate new view from xml
TextView newTextView = (TextView) addView.findViewById(R.id.sampletextview);    //Reference the newview     
newTextView.setText("New Sample text");
popField.popView(view,addView,true);

Inspired by and thanks to Tyrantgit's Explosion field

License

Copyright 2017 krishnarb3

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.

You might also like...
Android ImageViews animated by Ken Burns Effect
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

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

A TagView library for Android. Customize your own & Drag effect.
A TagView library for Android. Customize your own & Drag effect.

AndroidTagView An Android TagView library. You can customize awesome TagView by using this library. Screenshots Usage Step 1 Add below dependency in y

An Index Side Bar With Wave Effect
An Index Side Bar With Wave Effect

WaveSideBar You can use WaveSideBar in the contacts page of your application. Refer to AlexLiuSheng/AnimSideBar. Screenshot Include the WaveSideBar to

Squishy button effect with kotlin
Squishy button effect with kotlin

Squishy Usage Add squishy() modifier on your composable element. Text( text = "Squishhhhyyyyy", modifier = Modifier .size(200.dp, 100.dp

JetCompose - Blur Effect in Android 12 with motion layout carousel
JetCompose - Blur Effect in Android 12 with motion layout carousel

JetCompose Blur Effect in Android 12 with motion layout carousel

🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
🎨 Android colorpicker for getting colors from any images by tapping on the desired color.

ColorPickerView 🎨 ColorPickerView implements getting HSV colors, ARGB values, Hex color codes from any image drawables or your gallery pictures by ta

FogView is a android library that can show fog on any layout and the fog removes when user rubs it.
FogView is a android library that can show fog on any layout and the fog removes when user rubs it.

Fog View Android Library Min SDK 8 (Android 2.2–2.2.3 Froyo) Screnshots How to use If you want use this library, you can download project and import i

Overscroll any scrollable items!
Overscroll any scrollable items!

ComposeOverscroll Overscroll any scrollable items! Preview compare with iOS demo Preview.for.overscroll.and.nested.invoke.mp4 How to use for column :

Comments
  • Try to use GONE and VISIBLE to control the View visibility

    Try to use GONE and VISIBLE to control the View visibility

    I think the use of VISIBLE and GONE, better able to repeat. Use the View for instance can be repeated in between the two View appear and disappear

    This is a machine translation --!

    opened by LinXiaoTao 4
  • width and height must be > 0

    width and height must be > 0

    Hi I'm receiving this error often: java.lang.IllegalArgumentException: width and height must be > 0

    I think it has to do with me trying to use popView on a GONE view so I added a check to see if it is Visible but I still get this error often, not entirely sure why. Doesn't happen all the time.

    Here is my check:

     if ((pulseView.getVisibility()== View.VISIBLE)) {
                    popField.popView(pulseView);
                }
    
    opened by kiaanpillay 1
  • Add [unit] tests and coverage metrics

    Add [unit] tests and coverage metrics

    Check out this link.

    Writing tests will make life easier when adding more features in the future. Also, will this work on all android versions?

    Nice work btw ;)

    opened by sananth12 1
Owner
R B Krishna
R B Krishna
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+)

RippleView View that imitates Ripple Effect on click which was introduced in Android L. Usage For a working implementation, Have a look at the Sample

Muthuramakrishnan Viswanathan 1.2k Dec 30, 2022
This is a android custom view , like a scratch card effect!

ScratchView This is a android custom view , like a scratch card effect! Last Update 采纳DearZack童鞋的优化思路,把计算擦除面积比例的操作放在手指离开屏幕时,以降低对CPU的占用。 Articles Scrat

D_clock爱吃葱花 316 Nov 29, 2022
This is a picker view for android , support linkage effect, timepicker and optionspicker.(时间选择器、省市区三级联动)

Android-PickerView English Document 注意事项、详请使用方式、更新日志等,请查看 Wiki文档 Wiki文档,Wiki文档,Wiki文档 !~ 重要的事情说三遍 对于使用上有任何疑问或优化建议等,欢迎加入QQ群讨论交流技术问题。 交流群1: 387051294(推荐

Bigkoo 13.2k Jan 6, 2023
Simple and fantastic wheel view in realistic effect for android.

Overview ![Size](https://img.shields.io/badge/Size-17 KB-e91e63.svg) Contact Preview Demo WheelPicke.APK Include Compile compile 'cn.aigestudio.wheelp

Aige 2.5k Jan 6, 2023
A swipe button for Android with a circular progress bar for async operations

ProSwipeButton A swipe button for Android with a circular progress bar for async operations Gradle dependencies { ... compile 'in.shadowfax:pr

Shadowfax Technologies 340 Nov 13, 2022
Helper class to make any view rotatable

Rotatable This is a helper class actually, it simplifies having a view as rotatable by setting touch events and handling a lot of boilerplate works! S

Yahya Bayramoğlu 300 Nov 11, 2022
[] A simple way to "badge" any given Android view at runtime without having to cater for it in layout

Android ViewBadger A simple way to "badge" any given Android view at runtime without having to cater for it in layout. Note: If your aim is to replica

Jeff Gilfelt 3k Nov 28, 2022
Animation View to Highlight particular Views 🎯 for Android

TargetView Animation View to Highlight particular Views ?? for Android, it can be Used with Views that you see important (Like CountDownTimer), And al

Anas Altair 53 Aug 7, 2021
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.

Swipecards Travis master: A Tinder-like cards effect as of August 2014. You can swipe left or right to like or dislike the content. The library create

Dionysis Lorentzos 2.3k Dec 9, 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