Mada za sehemu hiiWorking with mobile apps and development platformsMada 4
- Setting up the development environment
- Performing exploration of basic mobile user interface components
- Using layouts, views, and containers
- Performing addition and customisation of basic user interface components
Mobile User Interface Components
A mobile user interface (UI) is what you see and touch when using a phone app. Every app is built from small building blocks called UI components — the buttons you tap, the text you read, and the boxes where you type information. Understanding these components is the first step to designing apps that people can use easily.
When you open a mobile app like M-Pesa or a simple calculator, you interact with different elements on the screen. These elements help you:
- See information (text, images, icons)
- Give commands (buttons, switches, menus)
- Enter data (text fields, checkboxes, sliders)
Good UI design means choosing the right component for the right job so users can complete tasks quickly without confusion.
1. Labels
A label displays read-only text to the user. It shows titles, instructions, or information that the user cannot edit. For example, a label might say "Enter your name:" above a text box.
2. Text Input (Text Field)
A text input allows users to type information into the app. It is used for entering names, phone numbers, amounts of money, or any text data. In Tanzania, you might see a text input for entering a phone number like "0755XXXXXX".
3. Button
A button is a tappable element that triggers an action when pressed. Buttons can be labeled with text (like "Send" or "Confirm") or shown as an icon (like an envelope for email). When you tap "Buy" in a market app, you are tapping a button.
4. Image View
An image view displays pictures or icons. Apps often use images to make the interface attractive or to show products. A farmer's app might display an image of vegetables being sold.
5. Dropdown (Spinner)
A dropdown shows a list of options that expands when the user taps it. This is useful when the user must choose one option from a fixed list, such as selecting a region (e.g., "Dar es Salaam", "Mwanza", "Arusha").
6. Checkbox
A checkbox lets users select or deselect an option. It is either checked (selected) or unchecked (not selected). A checkbox might ask "Do you agree to the terms?" with a square box the user taps.
7. Switch (Toggle)
A switch is similar to a checkbox but looks like a sliding on/off button. It is used for binary choices like turning notifications on or off.
In class, your teacher will guide you through exploring these components using a visual example, such as a screenshot of a popular Tanzanian app like a mobile banking interface. Together, you will:
- Identify each visible component on the screen
- Name what each component does
- Discuss whether the component is used appropriately (for example, is a button the right choice for navigation?)
This brainstorming helps you recognize UI components in real apps before you start building your own.
Now you will create your own simple UI using a prototyping tool or an IDE. Follow these steps:
Step 1: Define the Purpose
Decide what your sample app will do. For example, a simple Airtime Balance Checker for Tanzania.
Step 2: Add a Label
Place a label at the top that says "Check Airtime Balance".
Step 3: Add a Text Input
Add a text input field where the user enters their phone number, such as "Enter phone number".
4. Add a Button
Place a button labeled "Check Balance". When the user taps this, the app would check the airtime.
5: Add Feedback Components
Add a label at the bottom that shows the result, like "Your balance is TSh 2,500".
Your screen now has labels, a text input, and a button working together.
After building your sample UI, you will test it through role-playing:
- One student acts as the user and tries to complete a task using the interface
- Another student watches and notes any confusion or difficulty
- Discuss as a class: Is the button easy to find? Is the label clear? Could a real person in Tanzania use this without help?
This testing reveals whether your UI design is truly user-friendly.
- UI components are the building blocks of every mobile app
- Labels show information, buttons trigger actions, and text inputs collect data
- Good UI design means choosing the right component for each purpose
- Always test your UI with real users to find and fix problems
In Tanzania, mobile apps like M-Pesa, Tigo Pesa, and banking apps use these same UI components to let you send money, buy airtime, or pay bills. Understanding how buttons, text fields, and labels work helps you not only use these apps more effectively but also imagine and design new apps that could solve everyday problems in your community, such as an app for small shop owners to track their sales in shillings.
Jinsi utakavyotathminiwaTathmini ya mchakato · Tathmini ya matokeo · Tathmini ya maarifa
Tathmini ya mchakato
- Identify and implement basic UI components.
- Test functionality and responsiveness of components.
Tathmini ya matokeo
Sample mobile app with functional buttons, text fields, and labels.
Tathmini ya maarifa
Detailed knowledge of:
Method used: The student should explain
- the common UI components and their purposes.
Principles: The student should explain the principles of:
- usability and usercentric design.
Theories: The student should explain:
- the key UI components.
- the Model-View-Controller (MVC) design pattern.
Circumstantial knowledge:
Detailed knowledge about:
- platform-specific component behavior and accessibility considerations.
Swali
What type of text does a label display to the user?
Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.
Ingia ili kufanya mazoeziMwalimu
Umekwama? Niulize chochote kuhusu mada hii.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado