跟随闪退,cp动画开始显示头像。
This commit is contained in:
@@ -178,7 +178,7 @@ public class RoomCPView extends FrameLayout {
|
||||
|
||||
|
||||
// 启动头像上下浮动动画
|
||||
// startAvatarFloatAnimation();
|
||||
startAvatarFloatAnimation();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -284,11 +284,15 @@ public class RoomCPView extends FrameLayout {
|
||||
post(() -> {
|
||||
// 设置MP4动画文件
|
||||
currPlayPath = localPath;
|
||||
// 启动从底部弹起动画
|
||||
startBottomUpAnimation();
|
||||
|
||||
// 开始播放动画
|
||||
anim_cp.setLoop(1);
|
||||
|
||||
startBottomUpAnimation();
|
||||
|
||||
setVisibility(View.VISIBLE);
|
||||
anim_cp.setVisibility(View.VISIBLE);
|
||||
avatarContainer1.setVisibility(VISIBLE);
|
||||
anim_cp.startPlay(new File(currPlayPath));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -727,11 +731,10 @@ public class RoomCPView extends FrameLayout {
|
||||
bottomUpAnimation.setAnimationListener(new Animation.AnimationListener() {
|
||||
@Override
|
||||
public void onAnimationStart(Animation animation) {
|
||||
setVisibility(View.VISIBLE);
|
||||
anim_cp.setVisibility(View.VISIBLE);
|
||||
avatarContainer1.setVisibility(VISIBLE);
|
||||
|
||||
anim_cp.startPlay(new File(currPlayPath));
|
||||
// setVisibility(View.VISIBLE);
|
||||
// anim_cp.setVisibility(View.VISIBLE);
|
||||
// avatarContainer1.setVisibility(VISIBLE);
|
||||
// anim_cp.startPlay(new File(currPlayPath));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -826,7 +826,9 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
||||
LogUtils.w("handleRoomMessage: invalid params");
|
||||
return;
|
||||
}
|
||||
|
||||
if (qxRoomSeatViewType == null) {
|
||||
return;
|
||||
}
|
||||
switch (qxRoomSeatViewType) {
|
||||
case KTV:
|
||||
if (ktvFragment == currentFragment) {
|
||||
|
||||
Reference in New Issue
Block a user