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

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.

Happy Birthday Memes: Laugh Your Way to Someone's Heart

Happy Birthday Memes: Laugh Your Way to Someone's Heart Introduction Birthdays are a special occasion to celebrate another year of life, and what better way to do it than with a good laugh? That's where happy birthday memes come in! These hilarious images are the perfect way to put a smile on someone's face and let them know you're thinking of them on their special day. Why Memes Are the Best Birthday Greetings * Relatable:  Memes often tap into universal experiences and emotions, making them instantly relatable to a wide audience. * Quick and Easy:  Sharing a meme is a hassle-free way to send birthday wishes, perfect for those last-minute greetings. * Memorable:  A funny meme is more likely to stick in someone's mind, making your birthday wishes unforgettable. * Versatile:  There's a meme for every type of person and occasion, from silly and goofy to heartfelt and sentimental. How to Use Happy Birthday Memes * Share on Social Media:  Spread ...

Cybersecurity Essentials: How To Stay Safe On The Internet

  Hi there, my name's Likhwa and welcome to Building Africa's Next Tech Unicorn. on this platform I give a behind the scenes look at what it takes to build a startup within the African context. In today's video, I'll be doing something different- I'll be talking about how you can stay safe online. This isn't meant to scare you or get you all paranoid, but to help you be more vigilant in protecting yourself and your loved ones from cyber threats.  Most people underestimate the dangers of the internet, but the more I am exposed to it, the more I wish I didn't need it. At times I wish I could just disconnect, get rid of all my devices and not have to worry about the constant threats that come with being online. I believe some of us are fortunate by default- especially those who live in countries like my Zimbabwe- because we hardly use credit cards to transact online and even when we do, its not like we have a lot of money- otherwise we would be a hacker's g...