use of android.graphics.drawable.AnimatedVectorDrawable in project Signal-Android by WhisperSystems.
the class AudioView method togglePauseToPlay.
private void togglePauseToPlay() {
controlToggle.displayQuick(playButton);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
AnimatedVectorDrawable pauseToPlayDrawable = (AnimatedVectorDrawable) getContext().getDrawable(R.drawable.pause_to_play_animation);
playButton.setImageDrawable(pauseToPlayDrawable);
pauseToPlayDrawable.start();
}
}
use of android.graphics.drawable.AnimatedVectorDrawable in project Signal-Android by WhisperSystems.
the class AudioView method togglePlayToPause.
private void togglePlayToPause() {
controlToggle.displayQuick(pauseButton);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
AnimatedVectorDrawable playToPauseDrawable = (AnimatedVectorDrawable) getContext().getDrawable(R.drawable.play_to_pause_animation);
pauseButton.setImageDrawable(playToPauseDrawable);
playToPauseDrawable.start();
}
}
use of android.graphics.drawable.AnimatedVectorDrawable in project animate by hitherejoe.
the class AnimatedVectorDrawablesActivity method onTwitterHeartImageClick.
@OnClick(R.id.image_twitter_heart)
public void onTwitterHeartImageClick() {
AnimatedVectorDrawable drawable = mIsTwitterState ? mHeartToTwitterDrawable : mTwitterToHeartDrawable;
mTwitterHeartImage.setImageDrawable(drawable);
drawable.start();
mIsTwitterState = !mIsTwitterState;
}
use of android.graphics.drawable.AnimatedVectorDrawable in project plaid by nickbutcher.
the class HomeActivity method revealPostingProgress.
void revealPostingProgress() {
Animator reveal = ViewAnimationUtils.createCircularReveal(fabPosting, (int) fabPosting.getPivotX(), (int) fabPosting.getPivotY(), 0f, fabPosting.getWidth() / 2).setDuration(600L);
reveal.setInterpolator(AnimUtils.getFastOutLinearInInterpolator(this));
reveal.start();
AnimatedVectorDrawable uploading = (AnimatedVectorDrawable) getDrawable(R.drawable.avd_uploading);
if (uploading != null) {
fabPosting.setImageDrawable(uploading);
uploading.start();
}
}
use of android.graphics.drawable.AnimatedVectorDrawable in project plaid by nickbutcher.
the class PlayerSheet method showClose.
private void showClose() {
if (dismissState == DISMISS_CLOSE)
return;
dismissState = DISMISS_CLOSE;
final AnimatedVectorDrawable downToClose = (AnimatedVectorDrawable) ContextCompat.getDrawable(this, R.drawable.avd_down_to_close);
close.setImageDrawable(downToClose);
downToClose.start();
}
Aggregations