My view got 3 item, EditText, ImageView and TextView. now i'm doing some animation base on a tutorial which was working fine, now in that tutorial guy was using onClickListener to animate view and hide image, and was working fine, but my problem is, i want to show image when user is not on EditText anymore.
Right the idea is working like this
Click on EditText => Gonna animate and hide image => and when u tap or click on layout/activity/view/etc. image won't comeback.
Code :
    btnInvite.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            titleInvite.animate().translationY(-350).setDuration(800).setStartDelay(100).start();
            subtitleInvite.animate().translationY(-350).setDuration(800).setStartDelay(100).start();
            inputInvite.animate().translationY(-350).setDuration(800).setStartDelay(200).start();
            btnInvite.animate().alpha(1).translationY(-350).setDuration(800).setStartDelay(300).start();
            imageView.startAnimation(disapear);
            imageView.setVisibility(View.INVISIBLE);
        }
    });
This is what going to happen when someone click on EditText now i want to reverse it when edit text is not focused anymore, or something else clicked. I'm also using API 17, and i'm telling this bcs i looked into some of features but most of them couldn't be used in 17.
 
    