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

ripple effect #2

Closed
daimajia opened this issue Feb 12, 2015 · 6 comments
Closed

ripple effect #2

daimajia opened this issue Feb 12, 2015 · 6 comments
Assignees

Comments

@daimajia
Copy link

No description provided.

@vbaidak
Copy link
Member

vbaidak commented Feb 12, 2015

Hi,

I will think about it a bit and let you know.

I don't want to use any support libraries for this implementation and in
fact currently there are no libraries which support ripple effect. That is
why implementation seems to be not very trivial and thus may take some
time.
On 12 Feb 2015 05:14, "代码家" [email protected] wrote:


Reply to this email directly or view it on GitHub
#2.

@Narayane
Copy link

+1

Should be a great lead for you : https://github.com/traex/RippleEffect

@vbaidak
Copy link
Member

vbaidak commented Feb 14, 2015

yup, I'm investigating it to make it work starting from android ver. 9
I think it will be done soon

@wangdalong
Copy link

Hi, nice to meet you

I reviewed your Floating Action button library,

I think it is suitable for my project,

But I am not sure how to use animation?

For example, i want scale-in , scale-out animation, but i don't know how to do.

I used xml, and also used it in code, but it didn't work.

This is my code snippet .

mFab = (FloatingActionButton)findViewById(R.id.action_button);
mFab.setAnimationOnShow(FloatingActionButton.Animations.SCALE_DOWN);

Can you help me?

@vbaidak
Copy link
Member

vbaidak commented Feb 14, 2015

Hi wangdalong,

Animations are played while calling the public methods:

  • show();
  • hide();
  • dismiss();

There are a few questions about playing animations, so I will add this description to README.md file soon and in the next version I will also add these public methods to allow forcing the animations play:

  • playAnimationOnShow();
  • playAnimationOnHide();

If you need to force play the animation now and you don't want to call neither show(), hide() nor dismiss() try this code:

mFab.startAnimation(mFab.getAnimationOnShow()); // for animation on start
mFab.startAnimation(mFab.getAnimationOnHide()); // for animation on hide

@vbaidak vbaidak self-assigned this Feb 18, 2015
vbaidak pushed a commit that referenced this issue May 12, 2015
…stion - Pressed State #11 #  Default shadow offset does conform to material design guidelines #20 #  PayPal donate link returns error #21
@vbaidak
Copy link
Member

vbaidak commented May 12, 2015

Implemented in version 1.1.0

@vbaidak vbaidak closed this as completed May 12, 2015
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

4 participants