Azhar has Published 721 Articles

How can I remove a button or make it invisible in Android?

Azhar

Azhar

Updated on 03-Jul-2020 07:14:01

806 Views

This example demonstrates how remove a button or make it invisible 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 display Toast in Android?

Azhar

Azhar

Updated on 03-Jul-2020 07:10:11

841 Views

This example demonstrates how to display Toast in Android.Step 1 − Create a new project in Android Studio, go to File rArr; 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 − Add the ... Read More

How to load and display an image in ImageView on Android App?

Azhar

Azhar

Updated on 03-Jul-2020 07:01:48

3K+ Views

This example demonstrates how to load and display an image in ImageView on Android App.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 display custom view in ActionBar in Android?

Azhar

Azhar

Updated on 03-Jul-2020 07:01:08

599 Views

This example demonstrates how to display custom view in ActionBar 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

How to create EditText with rounded corners in Android?

Azhar

Azhar

Updated on 03-Jul-2020 07:00:11

8K+ Views

This example demonstrates how to create EditText with rounded corners 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

How can I get android device screen height, width?

Azhar

Azhar

Updated on 03-Jul-2020 06:49:03

1K+ Views

This example demonstrates how do I get android device screen height, width.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 download and save an image from a given URL in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:48:26

3K+ Views

This example demonstrates how do I download and save an image from a given URL 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 put a ListView into a ScrollView without it collapsing on Android?

Azhar

Azhar

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

2K+ Views

This example demonstrates how to put a ListView into a ScrollView without it collapsing 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 res/layout/activity_main.xml. ... Read More

How to start service using Alarm Manager in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:44:23

1K+ Views

This example demonstrates how do I start a service using alarm manager 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

Add and Remove Views in Android Dynamically?

Azhar

Azhar

Updated on 03-Jul-2020 06:43:35

3K+ Views

This example demonstrates how to Add and Remove Views in Android Dynamically.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