Hello, I am an android newbie (first day today). I have looked at the documentation at the android site but cannot find how to write the following simple application (either using an XML file or directly in code): a Canvas is stacked on top of a Button inside a LinearLayout and when the user clicks the Button a circle is drawn on the Canvas (then when the user clicks again the circle disappears). Sounds simple enough. Any help would be appreciated. Also, would it be better for the button to be part of the Canvas?
Also, I need to use some math fonts in my application such as the ones found in the Epic Math Tricks application (see the "squared" in the superscript for instance or the multiplication dot in the middle; I also need to do some fractions and use greek letters in my application): http://www.appbrain.com/app/epic-math-tricks/mrmarsman.math.emtlite I know some LaTeX so I could generate some bitmaps there and import them and write them to the canvas but is there a better way, perhaps directly through the android API? Or should I ditch the whole idea and write a Flash application for android instead? Thanks, JG So far I have found some online snippets and tried to do the following: public class DrawDemo extends Activity { DemoView demoview; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout layout = new LinearLayout(this); Button button = new Button(this); demoview = new DemoView(this); layout.addView(demoview); layout.addView(button); setContentView(layout); } ) but demoview covers my button, not sure what to do about it? Thanks for all your help. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

