我在android中创建了一个指令屏幕(类似于Android第一次打开智能手机时所做的屏幕。)我需要制作一个与整个屏幕重叠的布局(内容和{{1} })。我该怎么做。
提前致谢。
以下是图片的链接:
我想做这样的事情。因此,我需要一个与整个屏幕重叠的布局。 (除了顶部的通知栏)
答案 0 :(得分:0)
You can use Alert box for this when you enter in that screen then first it call this code after that rest of your screen code what ever you write in your activity here is my code
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainCleanerActivity.this);
alertDialogBuilder.setTitle("YOUR TITLE");
alertDialogBuilder
.setMessage("YOUR APP MESSAGE WHICH YOU WANT TO SHOW
")
.setCancelable(false)
.setPositiveButton("Yes",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
dialog.cancel();
}
});
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();