i simply can't find the solution for my problem. I hope anybody can help. For android I'm trying to slide down a view and after 3 seconds it has to slide up automatically.
The first time I start the method it's well! The view slides down and after a while it slides up again automatically.
The second time I start the method nothing happens. No view is shown! Not even the view slides down. (textView is a TextInputEditText)
public void slideDown() {
textView.animate().translationY(100).setStartDelay(350);
textView.animate().translationY(0).setStartDelay(3000);
}
public void initAnimation() {
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
textView.setLayoutParams(layoutParams);
textView.setGravity(Gravity.CENTER);
textView.setPadding(1000, 10, 1000, 10);
textView.animate().translationY(100);
}
I tried to orientate on this forum entry Slide Down & Slide Up