Azhar has Published 721 Articles

How to implement endless list with RecyclerView in Android?

Azhar

Azhar

Updated on 26-Nov-2019 06:49:32

268 Views

This example demonstrates how do I implement an endless list with RecyclerView in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Add the following dependency in build gradle (Module app) −implementation 'com.android.support:cardview-v7:28.0.0' implementation ... Read More

How can I style an Android Switch widget?

Azhar

Azhar

Updated on 26-Nov-2019 06:41:42

582 Views

This example demonstrates how do I Style an Android Switch Widget in android.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 handle right-to-left and left-to-right swipe gestures on Android?

Azhar

Azhar

Updated on 26-Nov-2019 06:35:28

4K+ Views

This example demonstrates how do I handle right to left and left to right swipe gestures on android.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 check if an Android application is running in the background?

Azhar

Azhar

Updated on 26-Nov-2019 06:28:36

555 Views

This example demonstrates how do I check if an android application is running in the background.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

What is the best way to auto scale TextView Text to Fit within Bounds on Android?

Azhar

Azhar

Updated on 22-Nov-2019 13:24:20

384 Views

This example demonstrates how to do I auto scale TextView text to fit within the bounds on android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Add the following dependencies to build.gradle: Module: App)implementation ... Read More

How to use SQLite database with an Android application?

Azhar

Azhar

Updated on 22-Nov-2019 13:18:59

626 Views

This example demonstrates how do I use the SQLite database with an android application.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 use SharedPreferences on Android to store, read and edit values?

Azhar

Azhar

Updated on 22-Nov-2019 12:58:58

178 Views

This example demonstrates how do I use SharedPreferences on Android to store, read, and edit values.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 the Android device's primary e-mail address?

Azhar

Azhar

Updated on 22-Nov-2019 12:53:49

811 Views

This example demonstrates how do I get the android device's primary e-mail address.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.     Step ... Read More

How to send data from one Fragment to another Fragment in Android?

Azhar

Azhar

Updated on 22-Nov-2019 12:46:20

1K+ Views

This example demonstrates how do I set the Android permission on a folder/file on SD Card to be able to write to it.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 − ... Read More

How to set the Android permission on a folder/file on SD Card to be able to write to it?

Azhar

Azhar

Updated on 22-Nov-2019 12:38:02

729 Views

This example demonstrates how do I set the Android permission on a folder/file on SD Card to be able to write to it.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 − ... Read More

Advertisements