my question description
in screenshot there 2 listviews.

what want achieve when touch purple listview, touched cell move , stop @ position of bottom of blue listview.
for example, if touched "decision heart transplant", animation showing cell moves up, stops @ position of "liver transplant".
what have tried
i have tried in purple listview
@override public void onlistitemclick(listview l, view v, int position, long id) { // setup animation view log.d("onlistitemclick", "position: " + viewforanim.getx() + ", " + viewforanim.gety()); // move selected view animation animation = null; animation = new translateanimation(0, 0, 0, -v.gety()-l.gety()); animation.setduration(700); v.startanimation(animation); } but seemed move selected cell within listview's bound, can't move out of it.
thinking animated purple listview's cell might covered blue listview, tried change listview's z-order using
l.bringtofront(); however didn't work either.
and tried approach showed in post
android -- how position view off-screen?
it might work animating view, didn't work case.
then tried setting android:clipchildren , didn't work animation requires moving cell out of listview.
so guys point me right way how achieve animation effect?
try using relative_to_parent in translate animation
Comments
Post a Comment