Azhar has Published 721 Articles

How to programmatically set drawableLeft on Android button?

Azhar

Azhar

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

5K+ Views

This example demonstrates how do I programmatically set drawableleft 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 change the text color of Menu item in Android?

Azhar

Azhar

Updated on 01-Jul-2020 07:42:13

5K+ Views

This example demonstrates how do I change the text color of the menu item 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 get a working vertical seekBar in Android?

Azhar

Azhar

Updated on 01-Jul-2020 07:39:32

1K+ Views

This example demonstrates how do I get a working vertical seekBar 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 can I create custom button in Android using XML Styles?

Azhar

Azhar

Updated on 01-Jul-2020 07:38:38

3K+ Views

This example demonstrates how do I create custom button in Android using XML Styles.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 request Location permission at run time in Android?

Azhar

Azhar

Updated on 01-Jul-2020 07:31:56

5K+ Views

This example demonstrates how do I request Location permission 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 ... Read More

How to use SearchView in Android?

Azhar

Azhar

Updated on 01-Jul-2020 06:10:17

2K+ Views

This example demonstrates how do I use SearchView 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 projectStep 2 − Add the following code to res/layout/activity_main.xml.         Step 3 ... Read More

How to use viewFlipper in Android?

Azhar

Azhar

Updated on 01-Jul-2020 06:09:31

565 Views

This example demonstrates how do I use viewFlipper 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 restart an Activity in Android?

Azhar

Azhar

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

2K+ Views

This example demonstrates how do I restart an Activity 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 ... Read More

How to add shadow on a text in Android?

Azhar

Azhar

Updated on 01-Jul-2020 06:05:41

163 Views

This example demonstrates how do I add shadow on a text 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 ... Read More

How to play audio file from the assets directory in Android?

Azhar

Azhar

Updated on 01-Jul-2020 06:03:41

2K+ Views

This example demonstrates how do I play audio file from the assets directory 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