java - Slide framelayout to left/right, fade and execute method -
i have following framelayout:
<framelayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/example" android:layout_marginbottom="5dp"> </framelayout>
what i'd able toggle rightways / left in relation parent div, fade , execute method, left or right differently. i've never done animation in android , don't know if there premade (being native, +) executes method @ end of animation + fade. idea on one?
you might want know how handle right left swipe gestures , add fade based on
float diffy = e2.gety() - e1.gety();
and
float diffx = e2.getx() - e1.getx();
variables (the length of gestures' vectors) code example shown there.
Comments
Post a Comment