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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -