Hi all

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

void init()
{
                //create a button
                myButton = (Button) findViewById(R.id.myLogon);
                myButton.setVisibility(android.widget.Button.VISIBLE);

                //create a drawable
                background=myContext.getResources().getDrawable
(R.drawable.background);
}

are drawing underneath the bitmaps that I draw in the method onDraw:
void onDraw(Canvas canvas)
{
                background.setBounds(0, 0,screenWidth/2, screenHeight/2);
                background.draw(canvas);

                invalidate();
}

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?

Thanks

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