I am porting an application that I did for the sdk 3 to the last one,
and one of the problems that I am facing is:
some of the widgets that I have, which are created in the following
//create a button
myButton = (Button) findViewById(R.id.myLogon);
//create a drawable
are drawing underneath the bitmaps that I draw in the method onDraw:
void onDraw(Canvas canvas)
background.setBounds(0, 0,screenWidth/2, screenHeight/2);
I mean, I can see the background, occupying a quarter of the screen,
and underneath it, the Button.
in previous versions, the widgets were always on top.
Does anybody know how to fix this?