Azhar has Published 721 Articles

How to use a custom font in an Android project using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 12:07:50

524 Views

This example demonstrates how to use a custom font in an Android project using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xm   ... Read More

How to use AutoCompleteTextView in an Android App using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 12:02:32

1K+ Views

This example demonstrates how to use AutoCompleteTextView in an Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

How to get Resource Name using Resource id in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 11:59:15

564 Views

This example demonstrates how to get Resource Name using Resource id in Android using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to pickup & hangup calls in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 11:56:08

188 Views

This example demonstrates how to pickup & hangup calls in Android using KotlinStep 1 − Create a new project in Android Studio, go to File ⇒ New Project, and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

How to set margins in an Android LinearLayout programmatically using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 11:48:23

2K+ Views

This example demonstrates how to set margins in an Android LinearLayout programmatically using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How do I get the resource id of an image if I know its name in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 11:43:36

958 Views

This example demonstrates how to get the resource id of an image if I know its name in Android using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the ... Read More

How to make an Android device vibrate programmatically using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 11:40:34

1K+ Views

This example demonstrates how to make an Android device vibrate programmatically using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

How to define a MIN and MAX value for EditText in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 07:25:16

602 Views

This example demonstrates how to define a MIN and MAX value for EditText in Android using KotlinStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How can I validate EditText input in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 07:14:29

1K+ Views

This example demonstrates how to validate EditText input in Android using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to check if Location Services are enabled in Android App using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 07:08:00

1K+ Views

This example demonstrates how to check if Location Services are enabled in Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Advertisements