booncol / pulsator4droid Goto Github PK
View Code? Open in Web Editor NEWPulse animation for Android
License: MIT License
Pulse animation for Android
License: MIT License
I want to use this library to animate Google Map markers. Is this possible?
The marker with animation will be similar to this library.
Any idea how to achieve that?
Thanks.
I have implemented your library in my project, but everything works fine. When i restart the view it give only one circle, instead of 4 circle.
private void startPulser(int color){ pulsator.stop(); // i tried without stop(). pulsator.setCount(4); pulsator.setDuration(7000); pulsator.setColor(color); pulsator.start(); }
//
I have 3 scenarios where PulsatorLayout doesn't animate as stated in the issue title:
Already tried onDraw, onAttachedToWindow, onFocusGained etc, but no help.
Note that this issue doesn't happen on all devices.
I'm trying to change the color of the pulses.
When I set the color in XML it works fine, but when I try to set it in Java, it doesn't change anything. If I don't set it in XML it stays default. I've also tried stopping and starting it in-between color changes.
However, if I try to setBackgroundColor, that changes instantly.
Any help is appreciated.
<pl.bclogic.pulsator4droid.library.PulsatorLayout
android:id="@+id/pulsatorLayout"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_marginTop="160dp"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintLeft_toRightOf="@+id/include"
app:layout_constraintRight_toLeftOf="@+id/include"
app:layout_constraintTop_toTopOf="parent"
app:pulse_color="@color/pulsatorAnimation"
app:pulse_count="3"
app:pulse_duration="3000"
app:pulse_interpolator="Linear"
app:pulse_repeat="0"
app:pulse_startFromScratch="true">
@BindView(R.id.pulsatorLayout)
PulsatorLayout pulsatorLayout;
pulsatorLayout.start();
Above code is not working on kitkat. animation is not showing. need help.
Commit f6da1c4 not published on maven repo
I would like to add a pulse with "no repeat". I have used a count=1 and repeat =1 but this leads to a twice pulse and I need it to be just one. I have tried to set repeat =0 but this also leads to an infinite pulse.
Adding pulse_startFromScratch="false" was a solution but it is not working for the new android versions!
Thanks in advance.
I try to run on fragment. But animation dont start..
Hi, is it possible to change color a runtime?
Is it possible to combine 2 colors instead of one ?
i think gradient will make it look so much better
Can i have border of each pulse only i dont need background
ex : #this is my app
Can i have only border of each pulse only such as shareit ! Thankyou
Can i increase the diameter of the pulse so that pulse can reach till the screen edges.
When i set startfromscratch = false; there are already pulse but they are not animating, only one pulse is animating.
Would be nice to have a programmatic option to set the color. If I missed this already, apologies.
When "pulse_startFromScratch" is true, the value setted for "pulse_duration" does not work
it is working fine for first start after stop it and try to start again pulse doesn't work fine
Where am I supposed to place it in my layout file?
<pl.bclogic.pulsator4droid.library.PulsatorLayout android:id="@+id/pulsator" android:layout_width="match_parent" android:layout_height="match_parent" app:pulse_count="4" app:pulse_duration="7000" app:pulse_repeat="0" app:pulse_color="@color/colorAccent" app:pulse_startFromScratch="false" app:pulse_interpolator="Linear"> <Button android:layout_width="match_parent" android:layout_height="match_parent" /> </pl.bclogic.pulsator4droid.library.PulsatorLayout>
This is doesn't show.
I import the library to my app by gradle.
I'm getting this building error :
"Manifest merger failed : Attribute application@allowBackup value=(true)".
I think you should remove allowBackup attribute from your library. (Lib should not have that attribute).
I think if can give delay for animation,then will be nice.and it will can run after special time or together with other animation.
thanks you
Animation of ripples is slow in nugget version when compared to previous versions.. Any reason for that?
Hi, the library is working great. I was wondering if it's possible to make the circular shape (and so the related pulsing shapes on background) oval. I mean for example to make the shape width=100dp and height=70dp. I tried to set different widths and heights but it remains circular, taking the size of the smaller parameter set (in this it's transformed in a circle of 70dp x 70dp). Thanks in advance!
How to drawArc instead of circle please tell me how to calculate parameter for it
Animation is not working on 7.0
Only one pulse animate while other remain static.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.