Kotlin Archives - Jigopost https://www.jigopost.com/category/code/kotlin/ jigopost is Web And Android Development tutorials for beginners, Our mission: to help people learn to code for free. Level up your blogging skills and become a successful blogger. This includes information on how to start, run, and grow your blog Wed, 17 Dec 2025 08:34:20 +0000 en-US hourly 1 https://www.jigopost.com/wp-content/uploads/2019/12/cropped-logojigodp-32x32.png Kotlin Archives - Jigopost https://www.jigopost.com/category/code/kotlin/ 32 32 How to Change Tint Color for an Image in Android https://www.jigopost.com/change-tint-color-for-image-in-android/ https://www.jigopost.com/change-tint-color-for-image-in-android/#respond Wed, 17 Dec 2025 08:05:00 +0000 https://www.jigopost.com/?p=2314 In this article, we will discuss how to change Tint Color for an Image in Android programmatically as well as in XML. Tint color means when we want to change the color of the image while rendering in ImageView. In XML is very easy to change tint color by just setting up the attribute android:tint="" in the ImageView...

The post How to Change Tint Color for an Image in Android appeared first on Jigopost.

]]>
https://www.jigopost.com/change-tint-color-for-image-in-android/feed/ 0
SQLite Kotlin – Notes App – Android Studio Tutorial https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/ https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/#respond Sun, 24 Jul 2022 05:13:00 +0000 https://www.jigopost.com/?p=651 In this tutorial we will make a “Notes App” using SQLite and Kotlin. It will contain following features. Enter Data Retrieve Data in ListView Update/Edit Data Delete Data Search Data Copy Data Share Data Step 01: Create a new Project or open new project Step 02: Create layout resource file under res>layout folder Step 03: Create new “Android Resource...

The post SQLite Kotlin – Notes App – Android Studio Tutorial appeared first on Jigopost.

]]>
https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/feed/ 0
Add items or menu in Actionbar/Toolbar (Kotlin) – Android Studio https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/ https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/#respond Sun, 24 Jul 2022 04:19:00 +0000 https://www.jigopost.com/?p=645 In this tutorial we will add items in actionbar/toolbar, 3-dot menu in actionbar/toolbar and handle item clicks using Kotlin. There will be three items in menu you can add as many as you want. One item will be displayed on action bar with icon, other two items will be displayed by clicking 3-dot menu. Step...

The post Add items or menu in Actionbar/Toolbar (Kotlin) – Android Studio appeared first on Jigopost.

]]>
https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/feed/ 0
Splash Screen with Kotlin in Android https://www.jigopost.com/splash-screen-with-kotlin-in-android/ https://www.jigopost.com/splash-screen-with-kotlin-in-android/#respond Sun, 24 Jul 2022 01:56:00 +0000 https://www.jigopost.com/?p=658 Android Splash Screen is the 1st screen visible to user when app launches. Splash screen displays some animations or App logo for a short time while some data for the next screen are fetched. Here we are going to implement a Splash Screen for Android with Kotlin. Splash Screen is very common to most of...

The post Splash Screen with Kotlin in Android appeared first on Jigopost.

]]>
https://www.jigopost.com/splash-screen-with-kotlin-in-android/feed/ 0
Volley JsonArrayRequest – kotlin Android https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/ https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/#respond Wed, 01 Jun 2022 06:35:00 +0000 https://www.jigopost.com/?p=1098 Android Volley JsonArrayRequest to Post ArrayList data to the server.Store Data in Locle recyclerView list and send to the server.  JsonArrayRequest — A request for retrieving a JSONArray response body at a given URL Example of volley json arrayRequest in kotlin MainActivity.kt VolleySingleton.kt activity_main.xml add this line into app.gradle [dependencies] Out Put

The post Volley JsonArrayRequest – kotlin Android appeared first on Jigopost.

]]>
https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/feed/ 0
Set EditText digits programmatically kotlin https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/ https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/#respond Wed, 06 Oct 2021 05:56:00 +0000 https://www.jigopost.com/?p=832 If you check the docs for EditText , you’ll find a setText() method. It also inherits TextView ‘s setText(CharSequence) and setText(int) methods, so you can set it just like a regular TextView : This is the solution in Kotlin MainActivity.kt activity_main.xml Output

The post Set EditText digits programmatically kotlin appeared first on Jigopost.

]]>
https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/feed/ 0
Swipe Refresh Layout example kotlin in android https://www.jigopost.com/swipe-refresh-layout-example-kotlin-in-android/ https://www.jigopost.com/swipe-refresh-layout-example-kotlin-in-android/#respond Wed, 06 Oct 2021 05:01:00 +0000 https://www.jigopost.com/?p=814 Pull to Swipe Refresh Layout is a gesture that is being used in a lot of popular apps, apps where content updates are frequent, like news, social media e.t.c. In Android development this gesture it’s called ‘Swipe to Refresh‘ Methods are: – setOnRefreshListener(OnRefreshListener): adds a listener to let other parts of the code know when refreshing begins.– setRefreshing(boolean): enables or disables progress visibility.– isRefreshing(): checks...

The post Swipe Refresh Layout example kotlin in android appeared first on Jigopost.

]]>
https://www.jigopost.com/swipe-refresh-layout-example-kotlin-in-android/feed/ 0
Text custom font using jetpack compose in android https://www.jigopost.com/text-custom-font-using-jetpack-compose-in-android/ https://www.jigopost.com/text-custom-font-using-jetpack-compose-in-android/#respond Tue, 05 Oct 2021 19:39:00 +0000 https://www.jigopost.com/?p=2692 Text custom font using jetpack compose in android with example. You can customize Compose’s implementation of Material Design to fit with Jetpack Compose implements these concepts with example. MainActivity.kt output

The post Text custom font using jetpack compose in android appeared first on Jigopost.

]]>
https://www.jigopost.com/text-custom-font-using-jetpack-compose-in-android/feed/ 0
Adding Floating Action Button Kotlin https://www.jigopost.com/adding-floating-action-button-kotlin/ https://www.jigopost.com/adding-floating-action-button-kotlin/#respond Fri, 24 Sep 2021 02:14:00 +0000 https://www.jigopost.com/?p=696 The Floating Action Button (FAB) is a circular button that triggers primary action in your app’s UI. This tutorial shows you how to add the FAB to your layout, customize some of its appearance, and respond to the button taps. We will show Snackbar on FAB click.We will use Kotlin and Android Studio.Minimum API: Android 2.1 is API level 7 Step 1: Create a new project OR Open your...

The post Adding Floating Action Button Kotlin appeared first on Jigopost.

]]>
https://www.jigopost.com/adding-floating-action-button-kotlin/feed/ 0
Create a button and handle on click listener in Android Studio Kotlin https://www.jigopost.com/create-a-button-and-handle-on-click-listener-in-android-studio-kotlin/ https://www.jigopost.com/create-a-button-and-handle-on-click-listener-in-android-studio-kotlin/#respond Fri, 24 Sep 2021 01:06:00 +0000 https://www.jigopost.com/?p=702 How to create a button and handle OnClickListener in Kotlin using Android Studio? In this tutorial we will create a button and handle button click. We will display a Toast on the click of that button. However you can do your own functionality such as moving to some activity, opening fragment etc. Step 1: Create a...

The post Create a button and handle on click listener in Android Studio Kotlin appeared first on Jigopost.

]]>
https://www.jigopost.com/create-a-button-and-handle-on-click-listener-in-android-studio-kotlin/feed/ 0