Posts

Custom Swipe Icon

Image
In order to Change Swipe Loyaurt Icon in your Sketchware project, use the codes provided below. Change Swipe Icon Important Setting From Change Icon Of Swipe Are :- 1) Enble App Compat And Design 2) Enble Import Event 3) Create A String Variable Step-1  To Change Icon Take A Image From URL Block And Take A String Block. In String Block Paste Image URL. Step-2 Take A Add Source Directly Block And Paste The Following Code Given Below.

Dark Pop-Up Menu

Image
 In order to display a pop-up menu on button click or on ListView item click in your Sketchware project, use the codes provided below. PopupMenu on button click 1. To display a PopupMenu when a Button is clicked, in onButtonClick event, use add source directly block, and put following code in it: PopupMenu popup = new PopupMenu(getActionBar().getThemedContext(), button1); Menu menu = popup.getMenu(); menu.add("Delete"); menu.add("Show"); This code creates a PopupMenu for button1, with two options Delete and Show. The same code can be used for creating PopupMenu for ImageView, TextView or or any other widget by using their id in place of button1. 2.After This Add another add source directly block and put following code in it: popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener(){ @Override public boolean onMenuItemClick(MenuItem item){ switch (item.getTitle().toString()){ case "Delete": This code sets OnMenuItemClickListener f...

Pop-Up Menu

Image
In order to display a pop-up menu on button click or on ListView item click in your Sketchware project, use the codes provided below. PopupMenu on button click 1. To display a PopupMenu when a Button is clicked, in onButtonClick event, use add source directly block, and put following code in it: PopupMenu popup = new PopupMenu(MainActivity.this, button1); Menu menu = popup.getMenu(); menu.add("Delete"); menu.add("Show"); This code creates a PopupMenu for button1, with two options Delete and Show. The same code can be used for creating PopupMenu for ImageView, TextView or or any other widget by using their id in place of button1. 2.After This Add another add source directly block and put following code in it: popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener(){ @Override public boolean onMenuItemClick(MenuItem item){ switch (item.getTitle().toString()){ case "Delete": This code sets OnMenuItemClickListener for the PopupMenu....

Toast With Library

Image
                          Toast With Library Preview :-                  Project Link Project Library Tasty Toast Fancy Toast Blocks Link Blocks