I have a layout that I have defined in an xml file which contains a number of ImageView's, RelativeLayout's, etc.
In OnCreate() I have the following code
public void onCreate(Bundle savedInstanceState)
{
super.onCreate( savedInstanceState );
setContentView( R.layout.main );
In my override for the view, I have the following code
class MainView extends View
{
.
@Override
protected void onDraw(android.graphics.Canvas canvas)
{
.
.
canvas.drawBitmap( Bitmap, x, y, null );
}
The x and y are calculated to coincide with one of my ImageViews ( I have verified that they are correct and the bitmap is valid ), my problem is that the bitmap is always drawn behind the ImageView. That is it is obscured by it. Is there any way to force the bitmap to draw in front of the ImageView?