Skip to main content

Building your user interface in Sketchware

Sketchware app login screen


The above image is the login page for my Sable App, which I created using Sketchware. In this tutorial I will take you through the basics of how to create a screen/user interface.

The first step after planning your app is building the user interface. This is what your user will see, click and interact with. Today we will cover some tips on how to build a simple user interface on Sketchware.

Start by creating a new project. If you're not sure how to create a new project then click here learn how to create a new Sketchware Project

Positioning your items

I'm sure by now you know that Sketchware uses a simple drag and drop method to position items on the main screen. You might however want to position your items in a specific way. 

How to position items in Sketchware layouts

In the image above, A shows items placed inside a linear horizontal and B shows items placed inside a Linear vertical. You can alsoposition *layouts* within *layouts*. For example if I want to create a screen with a heading and two buttons horizontally aligned below it- I can use a *Linear V*(vertical) and then place my *textview* inside it, to hold the heading. I can then place a *linear H*(horizontal) inside the first linear and under the textview. In the second linear, I can then drag two buttons and place them side by side.

Customizing the widgets and layouts

Sketchware properties menu


Secondly, you must note that each layout and widget has properties which you can change. If you click on any widget on your project screen, the properties menu will appear at the bottom of the screen. These will include *width, height, padding, gravity, colour, rotation* and so on. You can edit these to create your own custom look and feel. Since there are numerous properties I will not go into much detail about each of them but will encourage you to play around and see what difference each one makes when you adjust it.

The last thing I would like us to note when building layouts is that we want our app to look good on all screens. You should therefore choose carefully which items you will give a fixed width or length. This is where the *Weight* property comes in. Think of weight as a ratio. A weight of 1 means that the item should take up all the remaining space on the screen. Weight total or sum is the total sum that a specific layout can hold. For example a weight sum of 2 means I can place 2 items with a weight of one each. If I place one item it will only take up half the space.  

In some cases you might need to use a *Scrollview.* This allows the user to scroll and might work best for lists, Tables and games.

You can check out more tips on how to customize your widgets and create a beautiful user interface in Sketchware here 

*Illustration*
I have attached two screens. One is how my screen is set up in Sketchware and the other is how it's set up, once its running on a tablet.

As always, feel free to ask any questions 

Comments

Popular posts from this blog

Hip hop and RnB songs to apologize to your partner

Love is a beautiful thing, but it often goes wrong. This often leads to pain, suffering and sorrow.  Being imperfect beings, hearts tend to get broken all the time regardless how hard we may try to avoid it.  The heartbreak is often inadvertent but at times we find ourselves in the wrong. An oversight, a word unsaid or even a lapse in our judgement can cause our loved ones harm. This doesn't always have to be the end though. Oftentimes, relationships can be mended by simply uttering three simple words: "I AM SORRY". This article is a collection of some of my favourite 'I'm sorry' songs. I hope you'll enjoy these apology songs, but more importantly, I hope you will get a few quotables and some wisdom nuggets from them.  The best apology however, is to change behaviour (got that from a Jay Z interview) so as you apologize, please remember that it was your actions that hurt them. The best apology is one which involves you not repeating those same mistakes aga

Php date: How to get the first and last day of the week

In this tutorial, I'll show you how to get the first and last day of the week in php. By default, in PHP the week runs from Monday to Sunday. However we'll cover two methods to get the first and last day for both those who consider Sunday or Monday as their first day of the week. We will be using 2 functions to achieve this: date() strtotime() We will use a combination of these two functions and store the result in a variable.  How to get the first day of the week If you want to get Sunday, use this method: $firstday = date('l Y-m-d', strtotime("sunday -1 week")); echo $firstday; If you want to get the date for Monday, this current week, use this method: $monday = date('l Y-m-d', strtotime("monday -1 week ")); echo $monday; How to get the last day of the week The following code will give you Saturday as the last day of the current week. $lastday = date('l Y-m-d', strtotime("saturday 0 week")); echo $last

How to easily create background notifications in Sketchware(original)

How to easily create background notifications in Sketchware(original) One of the keys to building a successful app is to find mechanisms that will keep your users engaged. You can do this by using background notifications. This tutorial will show you how to do that in Sketchware. We will cover: 1. How to create notifications in Sketchware 2. How to show these notifications even when the app is closed.