Full Screen Custom Dialog on Sketchware



Code Used :

final Dialog dialog1 = new Dialog(this,LinearLayout.LayoutParams.MATCH_PARENT);
dialog1.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog1.setContentView(R.layout.custom_dialog);
final Button button1 = (Button)dialog1.findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
dialog1.dismiss();
}
});
dialog1.show();

Comments

Post a Comment

Popular posts from this blog

Read Json file from asset in Sketchware Pro

Change wallpaper Programmatically Sketchware

Web Scraping With Jsoup in Sketchware