Canvas drawing over my buttons

Problems with Canvas, OpenGL, etc...

Canvas drawing over my buttons

Postby Nomad0404 » Sun Mar 27, 2011 6:43 pm

Hello

I've relative layout on which I have several buttons at the top of the screen.

I'm then trying to draw on a canvas below the buttons.

Problem I have is that my box below the buttons draws but the buttons disappear.

I'm assuming the canvas is drawing over the buttons and obscuring them.

Any Ideas what I can do to stop this.

I can post my code if you want.

Thanks in advance.

Phil
Nomad0404
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Mar 07, 2011 10:23 pm

Top

Re: Canvas drawing over my buttons

Postby pawel » Sun Apr 03, 2011 7:40 pm

Hello, I`m writing the same kind of application. I dont know how to drawing and showing buttons simultaneously.
I used example TouchPaint from http://developer.android.com but there only is drawing. I copied class MyView into my project and I can only drawing or showing buttons because I must choice between:

MyView myView = new MyView(this); // I can drawing
setContentView(myView);

or

setContentView(R.layout.menu); // showing buttons

Could you send me your project? My email is pavlo250 gmail.com
Sorry for my poor english.
pawel
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Apr 03, 2011 7:21 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 1 guest