ShowroomActivity.java 文件源码

java
阅读 42 收藏 0 点赞 0 评论 0

项目:showroom-android 作者:
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);
            }
        }
    });
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号