More than one View or ViewGroup?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

More than one View or ViewGroup?

Postby pranav09 » Sat Feb 14, 2009 12:38 pm

Hi all,

I am developing one card game for that i have 6 stacks and foundation zone. So, how can i arrange card images on to the stack? Can View or ViewGroup help me to construct stack? If it is possible using xml file or java file, how?
Give me any idea or solution.
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Postby MrSnowflake » Sun Feb 15, 2009 9:45 am

When you are making games or custom controls you should do all drawing on a canvas (in onDraw()). And since you are making a game, your whole game should be done the same way the LunarLander example (in <sdk>/samples) is done. That way you have full control about the look and feel of your game. Using default Views would really make your game icky :).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests