Wednesday, September 15, 2010

Re: [android-developers] A hand of cards

Use a RelativeLayout (for the overlapping cards) and a
TranslateAnimation (for the movement of a card).

On Wed, Sep 15, 2010 at 8:33 PM, ClarkBattle <clarkbattle@gmail.com> wrote:
> Imagine that you had five overlapped playing cards horizontally fanned
> so that you could see the top card and the right edges of the other
> four.  Now you slide over the top card until its right edge is on the
> left of the screen, revealing the body of the second card with the
> right edges of the remaining three cards on the right.
>
> Any idea how to do this? I dont want to fake it with a plain old view
> flipper and dummy images that pop up on the side.  It has to animate
> and scroll as if it were a real card.   Is there any code that does
> something similar?

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment