ProgressBar: ProgressBar is used to display the status of work being done like analyzing status of work or downloading a file etc. In Android, by default a progress bar will be displayed as a spinning wheel but If we want it to be displayed as a horizontal bar then we need to use style attribute as horizontal. It mainly use the “android.widget.ProgressBar” class.

Step 1: Open up Android Studio Project through res -> layout -> activity_main.xml (or) main.xml and add below code or just drag and drop the switch to design XML file.

Step 2: Add below code in

7 CommentsClose Comments


  • akshay
    Posted November 29, 2017 at 9:46 am 0Likes

    thank you for sharing…
    very good articles….
    keep up the good work

  • rithesh
    Posted July 12, 2018 at 6:41 am 0Likes

    Nice Work

  • Vamshi
    Posted July 12, 2018 at 6:42 am 0Likes

    Nice Work Though

  • alert(1)
    Posted July 12, 2018 at 6:42 am 0Likes

    good job

  • Er.Alam porle
    Posted November 19, 2018 at 6:38 am 0Likes

    nice article,keep it up.

  • charan
    Posted August 9, 2019 at 4:57 am 0Likes

    good one..keep it up

Leave a comment