2
アクティビティ(以下の画像のようなもの)に画像を置くことはできますが、この画像の下のボタンや他のウィジェットはタッチイベントを受け取ることができますか?画像をアクティビティに置きます
アクティビティ(以下の画像のようなもの)に画像を置くことはできますが、この画像の下のボタンや他のウィジェットはタッチイベントを受け取ることができますか?画像をアクティビティに置きます
でレイアウトを作ることができます。
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();
}
}
あなたはこのHow do I create a transparent Activity on Android?のような透明Activity
を作成し、私は描画機能を無効にこの問題を解決するため、フルスクリーンImageView
以前のアクティビティでタッチイベントが失われました。 –