Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am still fairly new to programming in general and android specifically. I am working on an app that currently runs fine and does everything its supposed to do, but its only a skeleton of the app I would like to make. Right now, my TextViews, Buttons, etc are all arbitrarily placed just so I can see them and use them to develop the app. I am now getting to the point that I have to create the background, colors, etc and I'm not even sure what the correct terms are to search the forums and tutorials on how to do it.

I'm not looking to do anything fancy like 3D graphics, but I would like my game to look more professional than Barcode Beasties . Maybe something closer to this .

What are the views/styles that they use and could you help me out with a bit of the correct terminology so I can figure out what I have to learn to do this? What do I need to do to get my app that consists of standard views to the next level?

share|improve this question
1  
How are you loading the textviews, buttons etc? Are you using an XML layout or are you doing something like TextView tv = new TextView(this); ? –  Spoon Thumb May 15 '12 at 15:00
    
@SpoonThumb I'm using an XML layout. I understand how to arrange the views, but not how to augment them so they look more natural and like a game rather than a stale program. –  willmer May 15 '12 at 21:49
add comment

1 Answer

up vote 1 down vote accepted

First step is to give your different views a background: android:background="@drawable/mypicture in the XML layout

You can also make any view into a button by giving it an onClick attribute (or doing findViewById().setOnClickListener in your code), so you don't necessarily have to use buttons to do things (in fact I don't use buttons at all)

There is a guide about styling and themes here: http://developer.android.com/guide/topics/ui/themes.html

Finally, to give views those nice rounded corners without the background images getting all horribly stretched, check out nine-patch images http://developer.android.com/guide/developing/tools/draw9patch.html

I hope that helps / I've not been patronising

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.