Brief, bulletin point description of my problem:
- Tried to move a view to new location and clickable.
- Failed because only the imagery (image + text) moved to the new location while view itself programactically stayed behind.
- Will fire ClickListener events only if original location instead of new location were clicked
Attempt to move view to the same location with the following code:
public void onAnimationEnd(Animation animation) { ConstraintLayout.LayoutParams constraintLayoutParams = (ConstraintLayout.LayoutParams) swipeGridMenu.getLayoutParams(); constraintLayoutParams.leftMargin = 548; swipeGridMenu.setLayoutParams(constraintLayoutParams); }
- Both imagery and view moves as parameter changes, the 2 simply border each other instead of properly overlapping and aligned.
- Both setFillAfter and setFillEnabled were set to true.
How do I fix this?