本文整理了Java中android.widget.ScrollView.animate()
方法的一些代码示例,展示了ScrollView.animate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.animate()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:animate
暂无
代码示例来源:origin: schaal/ocreader
/**
* Shows the progress UI and hides the login form.
*/
private void showProgress(final boolean show) {
int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);
binding.loginForm.setVisibility(show ? View.GONE : View.VISIBLE);
binding.loginForm.animate().setDuration(shortAnimTime).alpha(
show ? 0 : 1).setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
binding.loginForm.setVisibility(show ? View.GONE : View.VISIBLE);
}
});
binding.loginProgress.setVisibility(show ? View.VISIBLE : View.GONE);
binding.loginProgress.animate().setDuration(shortAnimTime).alpha(
show ? 1 : 0).setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
binding.loginProgress.setVisibility(show ? View.VISIBLE : View.GONE);
}
});
}
}
代码示例来源:origin: quaap/LaunchTime
public void dismissActionPopup() {
if (mAnimationDuration>0) {
mShortcutActionsPopup.animate()
//.yBy(-mShortcutActionsPopup.getHeight())
.scaleY(0)
.alpha(0)
.setDuration(mAnimationDuration)
.setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationCancel(Animator animation) {
mShortcutActionsPopup.setVisibility(View.GONE);
}
@Override
public void onAnimationEnd(Animator animation) {
mShortcutActionsPopup.setVisibility(View.GONE);
}
});
} else {
mShortcutActionsPopup.setVisibility(View.GONE);
}
// if (mShortcutActionsPopup!=null) {
// //mShortcutActionsPopup.setVisibility(View.GONE);
// mShortcutActionsPopup = null;
//
// }
}
代码示例来源:origin: quaap/LaunchTime
mShortcutActionsPopup.animate()
.x(left)
.y(top)
内容来源于网络,如有侵权,请联系作者删除!