VOOZH about

URL: https://www.geeksforgeeks.org/kotlin/create-a-circular-button-with-an-icon-in-android-jetpack-compose/

⇱ Create a Circular Button with an Icon in Android Jetpack Compose - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Create a Circular Button with an Icon in Android Jetpack Compose

Last Updated : 23 Jul, 2025

In Android, Buttons are the most basic and frequently used UI element that lets users call a function or start a task from the application context. It is provided to the user to give input to the application with the help of a click. These Buttons are largely customizable and visual attributes can be altered according to the theme of the application. In this article, we will show you how you could create a Circular Button with an Icon in Android using Jetpack Compose.

👁 ezgifcom-optimize-(1)

Step by Step Implementation

Step 1: Create a New Project in Android Studio

To create a new project in the Android Studio, please refer to How to Create a new Project in Android Studio with Jetpack Compose.

Note: Select Kotlin as the programming language.

Step 2: Working with the MainActivity.kt file

Go to the MainActivity.kt file and refer to the following code. Below is the code for the MainActivity.kt file. Comments are added inside the code to understand the code in more detail.

MainActivity.kt:

Output:

Comment
Article Tags:

Explore