[android-developers] Re: Designing a UI for Board Game

2010-01-06 Thread piyushn
you can use DroidDraw tool for gui Design . Check it out @ www.droiddraw.org
.


thanks;-)


On Jan 5, 11: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

Re: [android-developers] Re: Designing a UI for Board Game

2010-01-06 Thread Donal Rafferty
You might find the Heirachy viewer some use as well, you can find in in the
SDK package in the toold folder.

Also in his book Android wireless application development Shane Condor
describes how to draw a chessboard as well as working with bitmaps and other
bits and pieces you might find useful, its by no means comprehensive but I
imagine could be a good starting point.


On Wed, Jan 6, 2010 at 10:54 AM, piyushn piyushn...@gmail.com wrote:

 you can use DroidDraw tool for gui Design . Check it out @
 www.droiddraw.org
 .


 thanks;-)


 On Jan 5, 11: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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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

[android-developers] Re: Designing a UI for Board Game

2010-01-05 Thread Lance Nanek
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