One way to do it is to have the game pieces be Drawable instances.
Those can be positioned using the setBounds method:
http://developer.android.com/intl/zh-TW/reference/android/graphics/drawable/Drawable.html#setBounds%28android.graphics.Rect%29

And drawn to a Canvas using the draw method:
http://developer.android.com/intl/zh-TW/reference/android/graphics/drawable/Drawable.html#draw%28android.graphics.Canvas%29

There are various ways to get a Canvas, such as subclassing View and
overriding the onDraw method:
http://developer.android.com/intl/zh-TW/reference/android/view/View.html#onDraw%28android.graphics.Canvas%29

On Jan 5, 1:11 am, prakhy <prakhyathhe...@gmail.com> wrote:
> Hi,
>
> I need to design a board UI using android platform. i was planning to
> take one image as board and moving the required images over the board.
> How do i achieve the same? I need to find the coordinates for image
> and need to move the required images to specifies coordinates. Is
> there any andorid api for this?
>
> 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

Reply via email to