void setHintPanelVisible(boolean visible)
{
final int visibility = hintPanel.getVisibility();
boolean previousVisible = visibility == View.VISIBLE;
if (previousVisible == visible)
{
return;
}
if (visible)
{
hintPanel.setVisibility(View.VISIBLE);
final AlphaAnimation alphaAnimation = new AlphaAnimation(0.2f, 1.0f);
alphaAnimation.setDuration(150);
hintPanel.setAnimation(alphaAnimation);
final RotateAnimation rotateAnimation = new RotateAnimation(
-90, 0, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
rotateAnimation.setDuration(500);
arrow.startAnimation(rotateAnimation);
}
else
{
hintPanel.setVisibility(View.GONE);
}
}
ItemViewHolder.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:RealmTasks
作者:
评论列表
文章目录