Skip to main content

Create Custom Popup Window using Sketchware

Create Custom Popup Window using Sketchware

Refer the video below if  you get stuck. 

1) Add a custom view named window.You can name it according to your wish. 

2)Design your popup window. 

2) Now, In the logic section,In OnCLick event of button.Add the following  code

Create a view

View popupView = getLayoutInflater().inflate(R.layout.window, null);

Popup window 

final PopupWindow popup = new PopupWindow(popupView, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);


Button b1 = popupView.findViewById(;
Button b2 = popupView.findViewById(;


b1.setOnClickListener(new OnClickListener() { public void onClick(View view) {
//below code will dismiss the popup window
} });

b2.setOnClickListener(new OnClickListener() { public void onClick(View view) {

} });

Show the popup window 

popup.showAtLocation(popupView, Gravity.CENTER, 0, 0);


  1. i think you need a screenshot of block... for better understanding...

  2. I want to add a sticky webview on top , and other item will scroll below it in sketware, can you help me ?

  3. When button wass click move to custom Activity to next Activity
    Which code will be used


Post a comment

Did you like this tutorial ?

Popular posts from this blog

Add Edittext Inside Dialog Box

Add Edittext Inside Dialog Box

If you haven`t yet watched the video...Watch it right now!!!

The code used in the above video is available here.
final EditText edittext1= new EditText(MainActivity.this); LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); edittext1.setLayoutParams(lpar); dialog.setView(edittext1);


Add Admob Banner ads to your Sketchware Project

Implement banner ads to your app using AIDE :

Video Url :
1) Open your project in AIDE
 Add '' to the app level build.gradle

2)Now navigate to AndroidManifest.xml and open it.

Add the following permissions

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

3)Add meta-data

<meta-data android:name=""
android:value="@integer/google_play_services_version" />

4)Add the activity

<activity android:name=""
android:theme="@android:style/Theme.Translucent" />

5)Open main.xml. Add the following code