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 
TextView textview4 = (TextView) convertView.findViewById(; 
textview4.setText("your text here!");
Button button1 = (Button) convertView.findViewById(;
button1.setOnClickListener(new View.OnClickListener(){ 
public void onClick(View v){ 


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 .

(Visited 20 times, 1 visits today)

Add a Comment

Your email address will not be published. Required fields are marked *