java - Android Slide Animation within layout -


how can animation in activity?

when click button in layout, slide this(can't post many links , picture yet

i tried doing tabbed not 1 i'm looking for. first time doing, know how have slide animation between activity

thanks in advance

edit*

i want know how effect

http://i.stack.imgur.com/njtfw.jpg

you can use fragment central layout , use fragment animations this

fragmenttransaction ft = getfragmentmanager().begintransaction(); ft.setcustomanimations(r.anim.slide_in_left, r.anim.slide_out_right); detailsfragment newfragment = detailsfragment.newinstance(); ft.replace(r.id.details_fragment_container, newfragment, "detailfragment"); ft.commit(); 

where xml file animation like.

<?xml version="1.0" encoding="utf-8"?> <set>   <objectanimator xmlns:android="http://schemas.android.com/apk/res/android" android:propertyname="x"  android:valuetype="floattype" android:valuefrom="-1280" android:valueto="0"  android:duration="500"/> </set> 

there many other animations can apply, can find more resources here


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -