Create a rounded dialog in Sketchware

To create A dialog with rounded corners follow given steps

 1. First create a custom view with ID  custom.xml  and design the layout of the dialog in this custom view.
sketchware 2. In onCreate Add a addSourceDirectly block and enter the following code. 
final AlertDialog dialog = new AlertDialog.Builder(MainpageActivity.this).create();
//MainPageActivity.this is your activity 
//change to your activity name 
LayoutInflater inflater = getLayoutInflater(); 
View convertView = (View) inflater.inflate(R.layout.custom, null);
//Custom is your custom view 
//change custom to your view name 
dialog.setView(convertView); 
TextView textview4 = (TextView) convertView.findViewById(R.id.textview4); 
textview4.setText("your text here!");
Button button1 = (Button) convertView.findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener(){ 
public void onClick(View v){ 
dialog.dismiss(); 

});
dialog.show();


Also see
  1)Create Stylish Pop Up Menu In Sketchware
2) Create sketchware Navigation Drawer
Thank you for reading , please keep up in your visiting every day .
Have a nice experience .