private void bindHelpButton() {
titleHelpButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ScaleAnimation bounce = new ScaleAnimation(1.2f, 1f, 1.2f, 1, helpButtonSizePx / 2, helpButtonSizePx / 2);
bounce.setDuration(600);
bounce.setInterpolator(new BounceInterpolator());
if (helpLayout.getVisibility() == View.GONE) {
showHelpOverlay();
titleHelpButton.setBackgroundResource(R.drawable.sr_close_icon);
titleHelpButton.startAnimation(bounce);
} else {
hideHelpOverlay();
titleHelpButton.setBackgroundResource(R.drawable.sr_info_icon);
titleHelpButton.startAnimation(bounce);
}
}
});
}
ShowroomActivity.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:showroom-android
作者:
评论列表
文章目录