Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
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 ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Paul Clapham
Liutauras Vilda
Sheriffs:
Junilu Lacar
Rob Spoor
Jeanne Boyarsky
Saloon Keepers:
Stephan van Hulst
Carey Brown
Tim Holloway
Piet Souris
Bartenders:
Forum:
Android
Lines
shivam singhal
Ranch Hand
Posts: 231
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
for (int i = 0; i < 9; i++) { canvas.drawLine(0, i*Height, getWidth(), i*Height, Lite); canvas.drawLine(0, i * Height + 1, getWidth(), i * Height+ 1, Hilite); canvas.drawLine(i*Width, 0, i*Width, getHeight(), Hilite); canvas.drawLine(i * Width + 1, 0, i * Width + 1, getHeight(), Hilite); }
Use of code in line 3 and 5?
and my emulator doesn't displaying the vertical lines after this code??
Bear Bibeault
Sheriff
Posts: 67698
173
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What do
you
think that they do? Please
ShowSomeEffort
.
And also please use better subjects than "Lines".
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
shivam singhal
Ranch Hand
Posts: 231
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think line 2 and 4 are sufficient in displaying the horizontal and vertical lines..
no need for line 3and 5..
and After changing the color of vertical line drawing , now its diaplaying in the emulator..
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Help in moving the highlighted Rectangle
Overcoming MIDP limitation for Random Number Generation
JPopupMenu
Size of window ???
Short Example of Fullscreen Graphics
More...