I am a beginner android developer and I am trying to have a button display on top of the bitmaps I am outputting.
Here is what I have:
my activity sets this:
setContentView(new FrameView(this));
FrameView is a class that extends View:
public FrameView(Context context) {
super(context);
setFocusable(false);
Inside FrameView I have
@Override protected void onDraw(Canvas canvas){
...
canvas.drawBitmap(image1.getBitmap(), 0, 0, null);
...
}
main.xml is FrameLayout that I stuck a button on top of, that's it.
I guess my question is, how do I insert something into the main.xml as a "canvas" in order to paste my bitmaps to, but still have the button always on top regardless of how many bitmaps i draw?