HomeSketchwarePage 2
Posted in Sketchware

Add menu in actionbar in Sketchware

1) Create a sketchware project. 2) Add a more block extra. 3) In that more block extra do as below:- 4) Code used in First ASD block is:-}@Overridepublic boolean onCreateOptionsMenu (Menu menu){menu.add(0,0,0,”Settings”);menu.add(0,1,1,”Profile”);menu.add(0,2,2,”About”);menu.add(0,3,3,”Rate now”);return true; 5) Code used in Second ASD block is:- }@Overridepublic boolean onOptionsItemSelected(MenuItem item){switch (item.getItemId()){case 0:_settings();break;case 1:_profile();break;case 2:_about();break;case 3: _rate();break;}return super.onOptionsItemSelected(item);6) Since I added […]

Posted in Sketchware

Swipe Refresh Listview in Chat app

1) Create a new sketchware project. 2) Drag and Drop Linear Layout with id linear1 and height match_parent. 3) Drag Drop ListView with id wb inside that Linear Layout linear1. 4) Create a new custom xml layout.Add a TextView with id textview1. 5) Enable AppCompat and Design Library and also Firebase Library. 6) In ListView […]

Posted in Sketchware

Swipe Refresh WebView In sketchware

1) Create a new sketchware project. 2) Drag and Drop a Linear Layout with id linear1 and height match_parent. 3) Drag and Drop a WebView with id wb inside that Linear Layout linear1. 4) Enable the AppCompat and Design Library. 5) In Oncreate event do as below:- 6) Code used in ASD block is :- […]

Posted in Sketchware

How to zip files in Sketchware

1) Create a new Sketchware project.2) Add two Buttons with id button1 and button2 and a EditText with id edittext1Then change the text of button1 and button2 to Zip files and folders and Unzip files .Then add a file picker component and three string variables source, destination and path.Then Create a more block zip with two […]

Posted in Sketchware

How to add an introduction in sketchware

Watch the below video and follow instructions. Code used in this video is:- linear1.setOnTouchListener(new View.OnTouchListener() {@Override public boolean onTouch(View p1, MotionEvent p2){ switch(p2.getAction()) { case MotionEvent.ACTION_DOWN: f = p2.getX();break; case MotionEvent.ACTION_UP: t = p2.getX();if (((f – t) < -250)) {_SlideLeft();} if (((t – f) < -250)) {_SlideRight();}break;}return true;}});

Posted in Sketchware

How to Share an image from imageview to any app.

1) Create a new sketchware project or use an existing project. 2) For sharing images from imageview1 , set a button as button1 to initiate sharing. 3) In button1 onClick event add a ASD block and paste the below code:- Bitmap bm = ((android.graphics.drawable.BitmapDrawable) imageview1.getDrawable()).getBitmap();try {java.io.File file = new java.io.File(getExternalCacheDir() + “/image.jpg”);java.io.OutputStream out = new […]

Posted in Sketchware

How to get Subscriber Count in Sketchware.

1) First Create a New Sketchware project. 2) Then add EditText as edittext1, Button as button1, TextView as textview5, textview2, textview3, textview4. Add two string variables as g and h. Add two map variables as map and map1. Add a List Map Variable as mapy. textview5 for Channel Name, textview2 for Subscribers, textview3 for Views, […]

Posted in Sketchware

How to make a Flashlight App in Sketchware App

1) Create a New project in Sketchware. 2) In view area add a LinearLayout as linear1 and set it’s layout to center horizontal and center vertical.Then add Imageview as imageview1. Set it’s width and height to 100dp and scale type to FIT_XY.Then on image manager add two imagesic_flash_on_black and ic_flash_off_black.Set imageview1 to ic_flash_off_black. 3) In library manager […]