private void transLabelX(boolean show) {
if (labelHideTransX == -1)
labelHideTransX = TDevice.dipToPx(getResources(), 52);
if (show) {
if (labelBeforeTransX == 0)
return;
else
labelBeforeTransX = 0;
} else {
if (labelBeforeTransX == labelHideTransX)
return;
else
labelBeforeTransX = labelHideTransX;
}
if (mTvLabel.getTag() == null) {
mTvLabel.animate()
.setInterpolator(new AnticipateOvershootInterpolator(2.5f))
.setDuration(260);
mTvLabel.setTag(mTvLabel.animate());
}
mTvLabel.animate()
.translationXBy(mTvLabel.getTranslationX())
.translationX(labelBeforeTransX)
.start();
}
UserSelectFriendsActivity.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:OSchina_resources_android
作者:
评论列表
文章目录