Here is a custom layout written by Romain Guy that displays a grid of images. You may be able to adapt it for your purposes:
http://code.google.com/p/miffed/source/browse/GUI/src/uk/ac/ic/doc/gea05/miffed/wigets/GridLayout.java Other than that, start writing some code. Talking about what you want to do won't get you far, so you will just have to start playing around seeing what works and what doesn't. It's the best way to learn. On Jan 12, 1:09 pm, prakhy <prakhyathhe...@gmail.com> wrote: > my actual aim is too build a chess UI using android platform. So i > need to split the images into coordinates and get touch events over > the same. And also i need highlight the possible combinations for > touched pawn. So i need to get something more than the coordinates in > order to take further moves. > > > I don't know what you mean by "touch events dynamically". > > I meant scale on different resolutions and dimensions automatically. > > Regards > Prakhy > > On Jan 12, 9:25 pm, k_day <kevin.r....@gmail.com> wrote: > > > You won't get separate touch events for the same image, but you can > > however get the coordinates of your touch event relative to its > > parent, or itself, depending on want you want. So given the > > coordinates of the touch, you can easily determine where on the image > > you may be touching. > > > It is possible and considered good practice to write code that will > > scale on different resolutions and dimensions. > > > I don't know what you mean by "touch events dynamically". > > > Its probably best to just get your feet wet and write some simple > > sample apps just to get a handle on layouts and touch events before > > trying to piece together this large app. > > > -k_day > > > On Jan 11, 10:50 pm, prakhy <prakhyathhe...@gmail.com> wrote: > > > > Thanks both of you. > > > I need to provide touch events for different parts of the image. The > > > touch areas might also need to > > > scale automaticallybased on the screen dimensions and screen > > > resolution. Is it possible to touch events dynamically > > > as coordinates changes(in different devices)..? > > > > Prakhy > >
-- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en