Posts

Showing posts with the label Sketchware reset

Reset, move to previous webpage, and remove action bar in Sketchware

Image
1. How to create a reset button in Sketchware? If you have an app which takes written input and has one or more Edittext widgets being used, you can use a reset button in your app which clears all the inputs in  Edittext  view. The method is very simple. Simply insert a new button in your view field and name it as  reset . Then in it's logic  set all Edittext to blank . The picture​ below shows an example. Now when you click the reset button, it will render all edittext fields blank. 2. How to enable going back or going to previous page in webview? In  webview  if you have not used any code other than  loadurl , the app exits on pressing back button on any webpage. To prevent that, in the logic of the app, use  onBackPressed  event and in that use following code: if WebView ......... canGoBack then       WebView.......... goBack else       Finish Activity On using this code, if there is a webpage history, your app will lead you to a previous page of pressing back