{"id":915,"date":"2022-09-13T23:45:41","date_gmt":"2023-04-01T00:07:43","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/uncategorized\/creating-an-android-progressbar-utilizing-kotlin\/"},"modified":"2024-03-17T11:41:40","modified_gmt":"2024-03-17T11:41:40","slug":"creating-an-android-progressbar-utilizing-kotlin","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/","title":{"rendered":"Creating an Android ProgressBar utilizing Kotlin."},"content":{"rendered":"<p>In this tutorial, we will explore and apply the use of ProgressBar in our <a href=\"https:\/\/de.wikipedia.org\/wiki\/Android_(Betriebssystem)\">Android<\/a> Application using Kotlin.<\/p>\n<h2>Can you provide a definition of what a ProgressBar is?<\/h2>\n<p>The ProgressBar UI component is employed to exhibit the Progress on the application interface. A ProgressBar can be utilized to indicate the progress of download\/upload on the application interface.<\/p>\n<h2>Different Types of Progress Bars<\/h2>\n<p>There exist two varieties of Progress Bar.<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Determinate ProgressBar: This type of ProgressBar allows you to monitor and display the progress that has been completed.<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Indeterminate ProgressBar: This version keeps going endlessly unless you manually stop it.<\/ol>\n<p>Showing a ProgressBar within an Alert Dialog is the purpose of a ProgressDialog. However, it is no longer recommended to use ProgressDialog because displaying prolonged progress in a dialog while obstructing the screen is not considered advisable.<\/p>\n<h2>Attributes of a ProgressBar<\/h2>\n<p>ProgressBar has several significant characteristics.<\/p>\n<ul class=\"post-ul\">\n<li>android:indeterminate &#8211; used to specify the boolean value indicating the type of the ProgressBar<\/li>\n<li>android:max &#8211; The upper limit of the progress<\/li>\n<li>android:min &#8211; The lower limit of the progress<\/li>\n<li>android:progress &#8211; The steps by which the progress would be incremented.<\/li>\n<li>android:minWidth and minHeight &#8211; Used to define the dimensions of the ProgressBar<\/li>\n<li>android:progressBarTint &#8211; The tint color of the progress completed of the ProgressBar<\/li>\n<li>android:progressBarBackgroundTint &#8211; The tint color of the progress completed of the ProgressBar<\/li>\n<li>style &#8211; Used to set the style of the ProgressBar. By default it is circular. We can set the style as @style\/Widget.AppCompat.ProgressBar.Horizontal for the Horizontal ProgressBar<\/li>\n<li>android:progressDrawable &#8211; Is used to set a drawable for the progress.<\/li>\n<li>android:secondaryProgress &#8211; Indicates the secondary progress value. This is used when we want to show the sub-downloads\/subtasks progress.<\/li>\n<\/ul>\n<p>The default tint colors are pre-set to the colorAccent that is specified in the styles.xml.<\/p>\n<h2>XML Layout for a progress bar.<\/h2>\n<p>Here is an example of a simple XML layout for a circular indeterminate ProgressBar:<\/p>\n<pre class=\"post-pre\"><code>&lt;ProgressBar\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:minHeight=\"50dp\"\r\n        android:minWidth=\"50dp\" \/&gt;\r\n<\/code><\/pre>\n<p>In the upcoming section, we will utilize Kotlin to incorporate diverse forms of ProgressBars into our Android application.<\/p>\n<h2>The structure of an Android ProgressBar Kotlin app project.<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cf1d2c40ba52feef2c1f7\/16-0.png\" alt=\"android progressbar kotlin project structure\" \/><\/div>\n<h3>1. Code of XML Layout<\/h3>\n<p>Below is the code for the activity_main.xml layout.<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:gravity=\"center\"\r\n    android:orientation=\"vertical\"\r\n    tools:context=\".MainActivity\"&gt;\r\n\r\n\r\n    &lt;ProgressBar\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:minHeight=\"50dp\"\r\n        android:minWidth=\"50dp\" \/&gt;\r\n\r\n\r\n    &lt;ProgressBar\r\n        style=\"?android:attr\/progressBarStyleHorizontal\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:indeterminate=\"true\"\r\n        android:minHeight=\"50dp\"\r\n        android:minWidth=\"200dp\" \/&gt;\r\n\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/textViewHorizontalProgress\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"0\" \/&gt;\r\n\r\n\r\n    &lt;ProgressBar\r\n        android:id=\"@+id\/progressBarHorizontal\"\r\n        style=\"?android:attr\/progressBarStyleHorizontal\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:indeterminate=\"false\"\r\n        android:max=\"100\"\r\n        android:minHeight=\"50dp\"\r\n        android:minWidth=\"200dp\"\r\n        android:progress=\"1\"\r\n        android:progressBackgroundTint=\"@android:color\/darker_gray\"\r\n        android:progressTint=\"@color\/colorPrimary\" \/&gt;\r\n\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/btnProgressBarHorizontal\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:onClick=\"horizontalDeterminate\"\r\n        android:text=\"DETERMINATE HORIZONTAL PROGRESS BAR\" \/&gt;\r\n\r\n\r\n    &lt;RelativeLayout\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"&gt;\r\n\r\n        &lt;ProgressBar\r\n            android:id=\"@+id\/progressBarSecondary\"\r\n            style=\"@style\/Widget.AppCompat.ProgressBar.Horizontal\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_centerInParent=\"true\"\r\n            android:minHeight=\"150dp\"\r\n            android:padding=\"8dp\"\r\n            android:minWidth=\"150dp\"\r\n            android:progressDrawable=\"@drawable\/progress_states\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:id=\"@+id\/textViewPrimary\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_centerInParent=\"true\"\r\n            android:textColor=\"#000\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:id=\"@+id\/textViewSecondary\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginTop=\"25dp\"\r\n            android:layout_below=\"@+id\/progressBarSecondary\"\r\n            android:textColor=\"@color\/colorPrimaryDark\" \/&gt;\r\n\r\n\r\n    &lt;\/RelativeLayout&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/btnProgressBarSecondary\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"DETERMINATE SECONDARY PROGRESS BAR\" \/&gt;\r\n\r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>We have applied a progress drawable to the horizontal ProgressBar on the previous progress bar. The file progress_states.xml includes the drawable.xml for this purpose.<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;layer-list xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"&gt;\r\n    &lt;item android:id=\"@android:id\/background\"&gt;\r\n        &lt;shape android:shape=\"oval\"&gt;\r\n            &lt;stroke\r\n                android:width=\"4dp\"\r\n                android:color=\"@color\/colorPrimary\" \/&gt;\r\n            &lt;solid android:color=\"@android:color\/white\" \/&gt;\r\n        &lt;\/shape&gt;\r\n    &lt;\/item&gt;\r\n    &lt;item android:id=\"@android:id\/secondaryProgress\"&gt;\r\n        &lt;clip\r\n            android:clipOrientation=\"vertical\"\r\n            android:gravity=\"bottom\"&gt;\r\n            &lt;shape android:shape=\"oval\"&gt;\r\n                &lt;stroke\r\n                    android:width=\"4dp\"\r\n                    android:color=\"@android:color\/black\" \/&gt;\r\n                &lt;solid android:color=\"@android:color\/white\" \/&gt;\r\n            &lt;\/shape&gt;\r\n        &lt;\/clip&gt;\r\n    &lt;\/item&gt;\r\n    &lt;item android:id=\"@android:id\/progress\"&gt;\r\n        &lt;clip\r\n            android:clipOrientation=\"vertical\"\r\n            android:gravity=\"bottom\"&gt;\r\n            &lt;shape android:shape=\"oval\"&gt;\r\n                &lt;stroke\r\n                    android:width=\"4dp\"\r\n                    android:color=\"@color\/colorAccent\" \/&gt;\r\n                &lt;solid android:color=\"#F288F8\" \/&gt;\r\n            &lt;\/shape&gt;\r\n        &lt;\/clip&gt;\r\n    &lt;\/item&gt;\r\n&lt;\/layer-list&gt;\r\n<\/code><\/pre>\n<p>We have designed various states of the drawable, all of which are circular shaped. Each layer represents a different state &#8211; idle, secondary progress, and primary progress.<\/p>\n<h3>1. Code for the Main Activity in Kotlin<\/h3>\n<p>Let&#8217;s examine the code in the MainActivity.kt class in Kotlin.<\/p>\n<pre class=\"post-pre\"><code>package net.androidly.androidlyprogressbar\r\n\r\nimport android.support.v7.app.AppCompatActivity\r\nimport android.os.Bundle\r\nimport android.os.Handler\r\nimport android.view.View\r\nimport kotlinx.android.synthetic.main.activity_main.*\r\n\r\nclass MainActivity : AppCompatActivity() {\r\n\r\n\r\n    var isStarted = false\r\n    var progressStatus = 0\r\n    var handler: Handler? = null\r\n    var secondaryHandler: Handler? = Handler()\r\n    var primaryProgressStatus = 0\r\n    var secondaryProgressStatus = 0\r\n\r\n    override fun onCreate(savedInstanceState: Bundle?) {\r\n        super.onCreate(savedInstanceState)\r\n        setContentView(R.layout.activity_main)\r\n\r\n\r\n        handler = Handler(Handler.Callback {\r\n            if (isStarted) {\r\n                progressStatus++\r\n            }\r\n            progressBarHorizontal.progress = progressStatus\r\n            textViewHorizontalProgress.text = \"${progressStatus}\/${progressBarHorizontal.max}\"\r\n            handler?.sendEmptyMessageDelayed(0, 100)\r\n\r\n            true\r\n        })\r\n\r\n        handler?.sendEmptyMessage(0)\r\n\r\n\r\n        btnProgressBarSecondary.setOnClickListener {\r\n            primaryProgressStatus = 0\r\n            secondaryProgressStatus = 0\r\n\r\n            Thread(Runnable {\r\n                while (primaryProgressStatus &lt; 100) {\r\n                    primaryProgressStatus += 1\r\n\r\n                    try {\r\n                        Thread.sleep(1000)\r\n                    } catch (e: InterruptedException) {\r\n                        e.printStackTrace()\r\n                    }\r\n\r\n                    startSecondaryProgress()\r\n                    secondaryProgressStatus = 0\r\n\r\n                    secondaryHandler?.post {\r\n                        progressBarSecondary.progress = primaryProgressStatus\r\n                        textViewPrimary.text = \"Complete $primaryProgressStatus% of 100\"\r\n\r\n                        if (primaryProgressStatus == 100) {\r\n                            textViewPrimary.text = \"All tasks completed\"\r\n                        }\r\n                    }\r\n                }\r\n            }).start()\r\n        }\r\n\r\n    }\r\n\r\n    fun startSecondaryProgress() {\r\n        Thread(Runnable {\r\n            while (secondaryProgressStatus &lt; 100) {\r\n                secondaryProgressStatus += 1\r\n\r\n                try {\r\n                    Thread.sleep(10)\r\n                } catch (e: InterruptedException) {\r\n                    e.printStackTrace()\r\n                }\r\n\r\n                secondaryHandler?.post {\r\n                    progressBarSecondary.setSecondaryProgress(secondaryProgressStatus)\r\n                    textViewSecondary.setText(\"Current task progress\\n$secondaryProgressStatus% of 100\")\r\n\r\n                    if (secondaryProgressStatus == 100) {\r\n                        textViewSecondary.setText(\"Single task complete.\")\r\n                    }\r\n                }\r\n            }\r\n        }).start()\r\n    }\r\n\r\n    fun horizontalDeterminate(view: View) {\r\n        isStarted = !isStarted\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cf1d2c40ba52feef2c1f7\/26-0.gif\" alt=\"android progress bar kotlin app output\" \/><\/div>\n<p>You have the option to download the project through the provided link: AndroidlyProgressBar.<\/p>\n<p>&nbsp;<\/p>\n<p>More tutorials<\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/ios-progress-bar-also-known-as-progress-view\/\" target=\"_blank\" rel=\"noopener\">Progress Bar iOS also known as Progress View<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/using-kotlin-android-sharedpreferences\/\" target=\"_blank\" rel=\"noopener\">Using Kotlin Android SharedPreferences<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/a-class-in-kotlin-that-is-sealed\/\" target=\"_blank\" rel=\"noopener\">A class in Kotlin that is sealed.<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/spring-rest-xml-and-json\/\" target=\"_blank\" rel=\"noopener\">One example of Spring REST XML and JSON<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/convert-a-string-to-an-xml-document-in-java-and-convert-an-xml-document-to-a-string\/\" target=\"_blank\" rel=\"noopener\">Convert string to XML document in Java<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin. Can you provide a definition of what a ProgressBar is? The ProgressBar UI component is employed to exhibit the Progress on the application interface. A ProgressBar can be utilized to indicate the progress of download\/upload on the [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-915","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating an Android ProgressBar utilizing Kotlin. - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating an Android ProgressBar utilizing Kotlin.\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-01T00:07:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-17T11:41:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cf1d2c40ba52feef2c1f7\/16-0.png\" \/>\n<meta name=\"author\" content=\"Olivia Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\"},\"author\":{\"name\":\"Olivia Parker\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\"},\"headline\":\"Creating an Android ProgressBar utilizing Kotlin.\",\"datePublished\":\"2023-04-01T00:07:43+00:00\",\"dateModified\":\"2024-03-17T11:41:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\"},\"wordCount\":529,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\",\"name\":\"Creating an Android ProgressBar utilizing Kotlin. - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2023-04-01T00:07:43+00:00\",\"dateModified\":\"2024-03-17T11:41:40+00:00\",\"description\":\"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating an Android ProgressBar utilizing Kotlin.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\",\"name\":\"Olivia Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"caption\":\"Olivia Parker\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Creating an Android ProgressBar utilizing Kotlin. - Blog - Silicon Cloud","description":"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/","og_locale":"en_US","og_type":"article","og_title":"Creating an Android ProgressBar utilizing Kotlin.","og_description":"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of","og_url":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2023-04-01T00:07:43+00:00","article_modified_time":"2024-03-17T11:41:40+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cf1d2c40ba52feef2c1f7\/16-0.png"}],"author":"Olivia Parker","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Olivia Parker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/"},"author":{"name":"Olivia Parker","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9"},"headline":"Creating an Android ProgressBar utilizing Kotlin.","datePublished":"2023-04-01T00:07:43+00:00","dateModified":"2024-03-17T11:41:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/"},"wordCount":529,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/","url":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/","name":"Creating an Android ProgressBar utilizing Kotlin. - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2023-04-01T00:07:43+00:00","dateModified":"2024-03-17T11:41:40+00:00","description":"In this tutorial, we will explore and apply the use of ProgressBar in our Android Application using Kotlin.Can you provide a definition of","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/creating-an-android-progressbar-utilizing-kotlin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating an Android ProgressBar utilizing Kotlin."}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9","name":"Olivia Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","caption":"Olivia Parker"},"url":"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=915"}],"version-history":[{"count":0,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/915\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}