Azhar has Published 721 Articles

How to create animation using XML file in an Android App using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:39:40

254 Views

This example demonstrates how to create animation using XML files 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.Example ... Read More

How to create GridView Layout in an Android App using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:32:37

2K+ Views

This example demonstrates how to create GridView Layout 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.Example Step 3 ... Read More

How to switch between different Activities in Android using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:25:27

6K+ Views

This example demonstrates how to switch between different Activities 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.Example Step 3 ... Read More

How to create Tab Layout in an Android App using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:18:37

3K+ Views

This example demonstrates how to create Tab Layout 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.Example Step ... Read More

How do you format date and time in Android using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:10:24

2K+ Views

This example demonstrates how to format date and time 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.Example Step 3 ... Read More

How to get the screen DPI programmatically in Android using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 08:04:31

456 Views

This example demonstrates how to get the screen DPI programmatically 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.Example ... Read More

How to detect if a user is using an Android tablet or a phone using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 07:59:31

528 Views

This example demonstrates how to detect if a user is using an Android tablet or a phone 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 ... Read More

How to change the font face of Webview in Android using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 07:55:30

630 Views

This example demonstrates how to change the font face of Webview 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.Example Step ... Read More

How to change the language of an app when the user selects language using Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 07:46:34

2K+ Views

This example demonstrates how to change the language of an app when the user selects language 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 ... Read More

How to put a ListView into a ScrollView without it collapsing on Android in Kotlin?

Azhar

Azhar

Updated on 21-Jul-2020 07:35:06

446 Views

This example demonstrates how to put a ListView into a ScrollView without it collapsing on Android in 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 ... Read More

Advertisements