tag:blogger.com,1999:blog-5033209062055976547.post259780251902399744..comments2023-05-15T05:38:44.679-05:00Comments on Cell0907: Tutorial for Drawing in Android - SurfaceView and SurfaceHoldercell0907http://www.blogger.com/profile/06432011765268092498noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-5033209062055976547.post-10259674565701678342017-12-03T15:24:38.247-06:002017-12-03T15:24:38.247-06:00By the way..because your comments doesn't supp...By the way..because your comments doesn't support either the html pre or code tags<br />I was forced to use a special tool to get the xml (for the strings.xml) to show correctly:<br /><br />http://www.htmlescape.net/htmlescape_tool.html<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-262355042894568092017-12-03T15:18:34.622-06:002017-12-03T15:18:34.622-06:00You also forgot the string for the button text..
H...You also forgot the string for the button text..<br />Here is my complete strings.xml:<br /><?xml version="1.0" encoding="utf-8"?><br><resources><br> <string name="app_name">Dots</string><br> <string name="hello_world">Hello world!</string><br> <string name="action_settings">Settings</string><br> <string name="button1">Start SurfaceView Drawing</string><br> <string name="menu_simple_ui">Simple UI</string><br> <string name="menu_dots">Dots</string><br></resources><br /><br />For the onClick event in Dots1.java I also added this (so the button does something):<br /><br />@Override <br />public void onClick(View v) { <br /> //~Activity; <br /> set_dots(); <br />} <br /><br />Good multi-threaded surface demo code though... ;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-57809506796227860212016-05-03T03:36:31.063-05:002016-05-03T03:36:31.063-05:00Great tutorial, great help, many thanks!Great tutorial, great help, many thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-21165244059912928612016-01-14T18:52:43.312-06:002016-01-14T18:52:43.312-06:00خیلی زیاد نوشتین =)خیلی زیاد نوشتین =)payampaphttps://www.blogger.com/profile/18267363928223264995noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-29257520618718902872016-01-14T18:52:39.211-06:002016-01-14T18:52:39.211-06:00خیلی زیاد نوشتین =)خیلی زیاد نوشتین =)payampaphttps://www.blogger.com/profile/18267363928223264995noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-80046549794795901432014-11-22T02:17:03.822-06:002014-11-22T02:17:03.822-06:00Thanks a lot to you Thair for stopping by, helping...Thanks a lot to you Thair for stopping by, helping Anonymous, and leaving your greetings. Good luck to you too!! :)cell0907https://www.blogger.com/profile/06432011765268092498noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-42866546537343818902014-11-21T09:17:33.052-06:002014-11-21T09:17:33.052-06:00@Anonymous,
Just add new values as following to &q...@Anonymous,<br />Just add new values as following to "res/values/string.xml" then enjoy!<br /><br />name="menu_simple_ui" Value=Simple UI<br />name="menu_dots" Value=Dots<br /><br />Thanks alot Mr. cell0907, this was EXACTLY what I was looking for, for long! :)<br />Best regards and good luck!Thair Joudihttps://www.blogger.com/profile/13010989574361315761noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-40122063262080243442014-11-21T09:11:02.476-06:002014-11-21T09:11:02.476-06:00This comment has been removed by the author.Thair Joudihttps://www.blogger.com/profile/13010989574361315761noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-68748494037895294462014-07-28T06:22:08.847-05:002014-07-28T06:22:08.847-05:00error in dot1.java at line
menu.add(0, MENU...error in dot1.java at line <br /> menu.add(0, MENU_SIMPLE_UI, 0, R.string.menu_simple_ui); <br /> menu.add(0, MENU_DOTS, 0, R.string.menu_dots);Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-63879598353956877992014-03-16T10:20:53.662-05:002014-03-16T10:20:53.662-05:00Great tutorial! :) Thank cell0907 alot!
But if I w...Great tutorial! :) Thank cell0907 alot!<br />But if I want to redraw all of DotsSurfaceView from the beginning. How can I do this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-62813057217054537702014-03-07T21:50:33.913-06:002014-03-07T21:50:33.913-06:00You are very welcome! My mother language is not En...You are very welcome! My mother language is not English either, so, not sure what I missed :). But all what I meant to say is that I'll have a beer to cheer for your support. Every time somebody post something like this, it makes my day! Honestly, I am just returning back to the community all what I can... that's where I learn ALL this... And by the way, I also grew up with assembly... I know exactly what you mean :)cell0907https://www.blogger.com/profile/06432011765268092498noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-15923124838418621282014-03-07T01:34:03.793-06:002014-03-07T01:34:03.793-06:00Mission accomplished. But seriously, your tuts ar...Mission accomplished. But seriously, your tuts are the best I've ever found out there. And I really need good tutorials. Taking the step from linear, procedural coding, mainly in assembler, to the abstraction level of Java is not a small leap for an old ox like me.<br />I will keep checking your blog, for sure. <br />As my mother tongue is not english, I might have missed something, but your reaction to the beer proposal and your nick made me start wondering if it is that bad? If so, I must say that you really do make good use of the abundance of available time.<br /><br />Thanks again.<br />/Erik<br /> <br /><br />Erikhttps://www.blogger.com/profile/14107116427736196622noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-23558853215858332772014-03-04T22:03:44.945-06:002014-03-04T22:03:44.945-06:00HA! Yeah, sure, you certainly will not have to for...HA! Yeah, sure, you certainly will not have to force me to do that! But do me a favor and buy yourself or somebody nearby one too! Cheers!! :)cell0907https://www.blogger.com/profile/06432011765268092498noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-69412186592688765962014-03-04T16:36:59.037-06:002014-03-04T16:36:59.037-06:00I'm slowly starting to partly understand small... I'm slowly starting to partly understand small fragments of some portions of this stuff. Finally. This was the first tutorial that did not end up in a null pointer assignment after one hour of cut and paste and tears and "wtf now?"s. <br />As I can not buy you a beer, you have to promise me that you will buy yourself a beer from me. <br /><br />THANKS!<br /><br />/Erik (55 year old assembler programmer.)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-87437732494394797332014-02-26T00:20:02.378-06:002014-02-26T00:20:02.378-06:00Thank you! :)Thank you! :)cell0907https://www.blogger.com/profile/06432011765268092498noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-80388557677899242252014-02-25T02:55:59.225-06:002014-02-25T02:55:59.225-06:00Nice tutorial. Really what I was looking for.Nice tutorial. Really what I was looking for.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-73267011987346990712013-12-28T05:49:56.606-06:002013-12-28T05:49:56.606-06:00Wops!! Good point! Just added! Apologies and thank...Wops!! Good point! Just added! Apologies and thank you for stopping by!! :)cell0907https://www.blogger.com/profile/06432011765268092498noreply@blogger.comtag:blogger.com,1999:blog-5033209062055976547.post-84901463526631910512013-12-27T23:57:36.952-06:002013-12-27T23:57:36.952-06:00Great article. Would be nice if the xml for the la...Great article. Would be nice if the xml for the layout was added as well. :)Richardhttps://www.blogger.com/profile/03255330745890226260noreply@blogger.com