If you want a linear set of buttons use a LinearLayout. If you want a grid, simply put a TableLayout in your XML with several TableRow inside. You can use ImageButton to have a button with an image in the middle (use the src attribute).
All the widgets derive from View, which has a "background" attribute so you can change the background to an image or a gradient on any of your widgets. R/ On Sat, May 16, 2009 at 7:17 AM, erykthege...@googlemail.com <erykthege...@googlemail.com> wrote: > > Hi, > > I'm pretty new to the whole app developing scene and i've never coded > in Java before, however it doesn't seem that different to c# so I > figured i'd give it a go. > > I've been making reasonable process on the app I'm working on, I've > figured out using the main.xml to create a relative layout for my UI. > In the UI I've managed to create an imageview that i've been able to > update to scroll through a bunch of images by pressing a button. > Pretty simple stuff so far. > > Now, here comes my problem. > > I want to create an area seperate of this imageview that will also > display a background image, and then, multiple images atop that > background image at specific locations. I will eventually want these > images to be clickable. > > From reading many an article it seems that the way to display an image > at a specific location and do all sorts of fancy stuff with it is by > using a canvas. but this doesnt appear to be a valid viewtype in the > layout xml. I found a basic tutorial that created a drawview class, > which I managed to work in, but it only allows me to have either that > layout, or the one in my xml file. I've tried inserting this class > into my main.xml by following this tut > http://www.anddev.org/creating_custom_views_-_the_togglebutton-t310.html > but it doesnt seem to work. > > I think i'm probably overcomplicating the issue, but if anyone could > point me at some resources that could show me how to acheive this, or > could offer any help on it, I would be most appreciative. > > In Summary :- > I have a ui layout that I want to use. > I want to add in a canvas area in this layout (can't figure out how) > with the canvas I want to be able to place multiple images at specific > locations > I want these images to be clickable. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---