Home2018October
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 […]

Posted in Sketchware

Enable Fullscreen for Youtube videos in WebView

1) Create a New project in Sketchware App. 2) In View area add WebView as webview1. 3) Add more block as full. 4) Copy the below code to more block in add source directly}public class CustomWebClient extends WebChromeClient {private View mCustomView;private WebChromeClient.CustomViewCallback mCustomViewCallback;protected FrameLayout frame;// Initially mOriginalOrientation is set to Landscapeprivate int mOriginalOrientation = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;private […]