mTextView.getScaleX() + 0.05f;
float scaleY = mTextView.getScaleY() + 0.05f;
updateScale(mTextView, scaleX, scaleY);
};
final Runnable smallerTask = () -> {
float scaleX = mTextView.getScaleX() - 0.05f;
float scaleY = mTextView.getScaleY() - 0.05f;
updateScale(mTextView, scaleX, scaleY);
};
updateScale(mTextView, 1f, 1f);
mService.scheduleAtFixedRate(biggerTask, 20, 0, 50, TimeUnit.MILLISECONDS, () -> {
showToast("reverse");
mService.scheduleAtFixedRate(smallerTask, 20, 1000, 50, TimeUnit.MILLISECONDS, () -> {
showToast("completed");
updateScale(mTextView, 1f, 1f);
});
});