How I can put an image over an activity (something like the image below) but with the buttons and other widgets under this image receiving the touch events?
Asked
Active
Viewed 726 times
2 Answers
0
You can create a transparent Activity
like this How do I create a transparent Activity on Android? and make a Layout with a fullscreen ImageView

Community
- 1
- 1

Mats Hofman
- 7,060
- 6
- 33
- 48
-
The previous activity lost the touch events. – Brais Gabin Sep 15 '11 at 14:47
0
I solve the problem override the draw function.
public class TutorialLinearLayout extends LinearLayout {
public TutorialLinearLayout(Context context) {
super(context);
}
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
Bitmap tutorial = BitmapFactory.decodeResource(getResources(), R.drawable.tutorial);
canvas.drawBitmap(tutorial, 0, 0, null);
tutorial.recycle();
}
}

Brais Gabin
- 5,827
- 6
- 57
- 92