non-xml Android views
Trying to program a connect4 style game in Android and running into issues with the views. I have worked with Java AWT and am trying to get the same functionality out of Android. A simple drawing system by which I can update the game board and have the screen remain until a button press causes a change to the game board. I have tried looking at a few tutorials but most tend to go the XML route which I am less familiar with, and also it seems it would be harder to update each of the game board locations using XML. Any easy to understand tutorials or specific instructions would be really helpful. Really just looking for a way to specify locations within a view by pixel location since that makes the most sense in 开发者_Python百科my mind. if there are far easier ways those would be appreciated.
All you need is drawing directly on a given canvas. The official site got the resource you need.
精彩评论