Create your own class e.g. MyView and let it inherit the class View.
Override the onDraw method of this class.

public class MyView extends View {

    @Override
        protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

        //Your own code to paint a circle here
}

Add an instance of MyView as a view to your linear Layout. This allows
you to draw whatever you want in the "MyView" view in your Layout, and
still use the standard handling for buttons.

-- 
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

Reply via email to