Android-Ansicht verschwindet, wenn außerhalb der Eltern gehen
Ich habe ein LinearLayout und ImageView in diesem LinearLayout.
Es gibt einen Übersetzungseffekt für ImageView.
// v = ImageView
ObjectAnimator animation2 = ObjectAnimator.ofFloat(v, "translationY", 200);
animation2.setDuration(3000);
animation2.setTarget(v);
animation2.start();
Die Animation funktioniert, verschwindet jedoch, wenn ImageView außerhalb von LinearLayout angezeigt wird.
Sie können das Problem hier sehen:http://screenr.com/zoAH
Wie kann ich das Problem beheben, ohne die Höhe von LinearLayout zu ändern?