• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris

Grid lines on surfaceView android

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a surfaceView which I use it to draw shapes on it. I would like to add in grid lines on my surfaceView before drawing the shapes on it. I have the onDraw method that draws a rectangle on the surfaceView shown below:

Also i have no clue about zooming in and out of the surfaceView so that the rectangle i have drawn is can be sized up or sized down and also shifting of the surface view after it is being zoomed in.

A button must be pressed down in order to perform the zoom in function i have wrote the following. Is it the correct way?

Please advice. Thank you.
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
    Bookmark Topic Watch Topic
  • New Topic