Docsity

Mobile Programming - 8 Progress Bar, Draggable Music Knob, Timer, Summaries of Computer Applications

Partial preview of the text

Download Mobile Programming - 8 Progress Bar, Draggable Music Knob, Timer and more Summaries Computer Applications in PDF only on Docsity!

Progress Bar

One of the most common ways to show users how much a process has progressed is to use a progress bar. Progress Indicator is a user interface element that indicates the progress of an operation.

Progress Bar Type

In Jetpack Compose, there are two types of progress bars, which are as follows:

**1. Circular Progress

  1. Linear Progress**

Linear Progress

Linear Progress is a progress bar by drawing a straight horizontal line. It doesn't contain any default animation type. To add some animations to it, we can use ProgressIndicatorDefaults.ProgressAnimationSpec.

There are now many music player applications on Android, and each has its characteristics. But something is lacking when listening to music without visual effects or a music visualizer. Music Visualizer is a visualization effect in the form of animation that appears when music is playing. The animation will move to follow the sound of the music we are playing.

Draggable Music Knob

Timer

Jetpack Compose simplifies and speeds up UI development on Android with less code, powerful tools, and intuitive Kotlin APIs. Next, we will create a Timer using Jetpack Compose. Timer is a special type of clock that is generally used to regulate the flow of events or processes.

Here is an example of the result of a timer application. It can be seen in the figure, the user can do a countdown from 100 to 1

Example of Timer