Created
July 15, 2011 19:26
-
-
Save ckozus/1085361 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Graphics extends Activity { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(new GraphicsView(this)); | |
| } | |
| static public class GraphicsView extends View { | |
| public GraphicsView(Context context) { | |
| super(context); | |
| } | |
| @Override | |
| protected void onDraw(Canvas canvas) { | |
| // Drawing commands go here | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment