简要说明我的问题的公告点描述:
尝试使用以下代码将视图移动到同一位置:
public void onAnimationEnd(Animation animation) {
ConstraintLayout.LayoutParams constraintLayoutParams = (ConstraintLayout.LayoutParams) swipeGridMenu.getLayoutParams();
constraintLayoutParams.leftMargin = 548;
swipeGridMenu.setLayoutParams(constraintLayoutParams);
}
我该如何解决这个问题?