In my android app, I have a checkbox layout which will be slide up and down from the center of screen.Though I'm using Object Animator When I check true to Check box, the check box layout moves down and if I uncheck the layout should move up. My Issue is check box moves down when I select it. But I can't select the checkbox when it is down. Instead if I click on the center(i.e previous checkbox position) it slides up to center. So It moves only the View part, not listener part. I'm using following code to animate
Checkbox Layout view
mChkView = findViewById(R.id.chkbx_layout_id);
Animator code
ObjectAnimator.ofFloat(mChkView, "translationY", 0, 60).setDuration(0).start();
I have found several answers in stack over flow as listed :
But none of the answer helps me.