Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

gridlines in the surfaceview how to? - SOLVED

 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
i have searched but could not find any solution (probably searching wrong keywords)
Anyway, i want to know that how can i draw grid lines in camera view. Please check following image.

Thanks for any advise.

My code is below

MainActivity


and my CameraShow class is
sample.png
[Thumbnail for sample.png]
 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally found the solution after couple of hours of search.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ibrahim yener wrote:I finally found the solution after couple of hours of search.

I'm happy to hear you found the solution. It's helpful when this happens to reply to your own post with the solution rather than editing it as solved. (We will check it off as solved so it will get the dot in the icon and page title.) This helps it be clear to see the original question and the solution.
 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Jeanne
Sorry for that, i completely forgot it.

Here is the solution:
I've just added following code into my constructor, that's all.

this.setWillNotDraw(false);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic