Site icon LD Talent Blog

How to create an awesome Android help feature

Hire the author: Moses N

Introduction

In this article we are going to learn how to create an awesome android help feature using material tap target prompt dependency, this is the final phase of How to generate real-time reports using Firebase and How to create an android two-step authentication signup system using Firebase. We are simply going to add a help functionality to take the user to go through the app features on the first launch.

Get the complete project from GitHub

Motivation

Help makes it easier or possible to do something or use something with ease. How about having an introduction to first-time users to your app on the first launch or when they may need it? This will make everyone comfortable while using the app.

Goal

My goal in this project is to make the readers successfully develop an awesome Android help feature using material tap target prompt dependency.

Glossary

Project requirements

  1. Android Phone – you will require your android phone to act as an emulator for running the project. Alternatively, you can download Memu. Also, you can install the emulator from your android studio.
  2. Android studio – this the application development environment.
  3. Git – This is kinda optional but I still recommend having git installed. This will prove useful if you ever want to deploy your code or push to a remote repository. You can download and install git through Git.
  4. Internet Connectivity – we will require the internet for accessing the Firebase Database.

In short, that’s our project requirement. Let’s begin coding!

Steps for designing an awesome Android help feature

Step 1: Adding the project dependencies

We will be using the material tap target prompt dependency. Firstly, go to the app-level build.gradle file and add the following dependency: The dependency supports Android minSdkVersion 14


dependencies {
    implementation 'uk.co.samuelwall:material-tap-target-prompt:3.0.0'
}

Step 2: Creating the help fragment.

Secondly, we will create the home fragment and add a button “Open visual start guide”.

Step 3:Creating the tittle and subtitle.

Since we want to add our favorite title and subtitle. We will create a method to set the primary title and the secondary title.

We will then create a method that will call the method created above to set the actual title we want on a page.

Step 4: Showing the help on first launch.

Lastly, we do not want to show these prompts all the time. It is supposed to be available only the first time the user launches the app or when the user clicks on the “Open visual start guide” button. We will use the sharedpreferences and then create a method firstrun() and set it to true.
.

Finally, our complete and final Help.java will be like this.

Future Direction

The default shape is a circle but any other shape can be rendered by extending the PromptBackground and PromptFocal classes. We can also use different colour and font styles on the title and subtitles.

Reflective Analysis

Figuring out how to utilize the material tap target prompt in android was a great learning experience. One of the best experiences a user can have with an application is having a general and quick overview of all the functionalities he or she can perform.

Learning Strategies and Tools

There are a lot of learning tools online, I would recommend the following:

I used the learning tools above to create an awesome android help feature. Anytime I faced some bugs, I would use stack overflow to check for solutions.

It took me a total of 5 hours to finish the project and the blog.
Get the complete project from GitHub

Image Citation: Link

Happy coding!

Hire the author: Moses N

Exit mobile version