Azhar has Published 721 Articles

How to resize an image in Android using Picasso?

Azhar

Azhar

Updated on 08-Jul-2020 06:04:50

452 Views

This example demonstrates how to do I 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 − Open build.gradle (Module: app) and add the following dependency −implementation 'com.squareup.picasso:picasso:2.5.2'Step 3 − Add ... Read More

How to detect application heap size in android?

Azhar

Azhar

Updated on 08-Jul-2020 06:03:47

226 Views

This example demonstrates how do I detect application heap size 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 dynamically update a listView in Android?

Azhar

Azhar

Updated on 08-Jul-2020 06:03:18

3K+ Views

This example demonstrates how do I dynamically update a ListView 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 add a shake feature that will refresh Android Application?

Azhar

Azhar

Updated on 08-Jul-2020 06:02:40

337 Views

This example demonstrates how do I add a shake feature that will refresh 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 detect orientation change in layout in android?

Azhar

Azhar

Updated on 08-Jul-2020 05:58:15

1K+ Views

This example demonstrates how do I detect orientation change in layout 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. Step 3 ... Read More

Playing an Arbitrary tone with Android?

Azhar

Azhar

Updated on 08-Jul-2020 05:56:41

165 Views

This example demonstrates how do I playing an arbitrary tone with 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 detect scroll up and scroll down in android listView?

Azhar

Azhar

Updated on 08-Jul-2020 05:55:30

1K+ Views

This example demonstrates how do I detect scroll up and down in android listView.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 set the value for the attribute layout_weight for button in Android dynamically from java code?

Azhar

Azhar

Updated on 08-Jul-2020 05:50:42

1K+ Views

This example demonstrates how do I set the value for the attribute layout_weight for button in android dynamically from java code.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 create Horizontal ListView in Android?

Azhar

Azhar

Updated on 08-Jul-2020 05:38:50

723 Views

This example demonstrates how do I create Horizontal ListView 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.Kindly add the below-given dependence in the Gradle −implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0'Step 2 − Add ... Read More

How to make an Android SlidingDrawer slide out from the left?

Azhar

Azhar

Updated on 08-Jul-2020 05:21:41

297 Views

This example demonstrates how do I make an android slidingdrawer slide out from the left 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

Advertisements