Component Design

The view of our progressbar should look like this:
with background color, processing text, and progress color.
The progressbar should expose some basic functionality of a progress bar like:
  • Setting/Getting Range ( Min, Max )
  • Setting/Getting Current Position
  • Setting Background Color, Text and some other functionality.

The progress color is an inverted background color, and the text can be changed everytime it needed to. 

Because this custom component is a simple one, and it easy to make an inherit from View class ( android.view.View ), than we will make this custom component by inheriting from View class. There are a few things to consider when inheriting component from View class.

Was this information helpfull ?