Implement Layering of screens on Android -


i want implement layering of screens when transitioning 1 screen another.

requirement:

i> there screen button.

ii> when user clicks on button , next screen displayed in following manner.

it should move down & place on top of existing screen. on iphone , technically known implementing present model view controller

i aware of moving screens left & right , there available api implementing have mentioned.

any inputs/sample code implementing same useful.

warm regards,

cb

there api override default transition animation between 2 activities in 2.0 , higher: overridependingtransition(). should called after startactivity() or finish() so:

intent intent = //new intent start next activity startactivity(intent); overridependingtransition(r.anim.custom, 0); 

where r.anim.custom custom animation define in xml slide bottom.

prior android 2.0, need put both views in same activity , use viewflipper animate between 2 views using same custom animation.

hope helps!


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -