Azhar has Published 451 Articles

How to overlay two images in Android to set an ImageView?

Azhar

Azhar

Updated on 03-Jul-2020 12:47:07

3K+ Views

This example demonstrates how do I overlay two images In Android to set an ImageView.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 create a Dialog Box without a title in Android?

Azhar

Azhar

Updated on 03-Jul-2020 12:45:02

297 Views

This example demonstrates how to create a Dialog Box without a title 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 change action bar size in Android?

Azhar

Azhar

Updated on 03-Jul-2020 12:42:48

3K+ Views

This example demonstrates how to change action bar 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/values/styles.xml             ... Read More

How to create Android Hello World App?

Azhar

Azhar

Updated on 03-Jul-2020 12:41:23

476 Views

This example demonstrates how to create Android Hello World 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.     Step 3  − Add ... Read More

Android bundle to pass data between activities?

Azhar

Azhar

Updated on 03-Jul-2020 12:40:01

310 Views

This example demonstrates how to pass data between activities.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 do I create a transparent Activity in an Android App?

Azhar

Azhar

Updated on 03-Jul-2020 12:37:06

2K+ Views

This example demonstrates how to create a transparent 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/values/styles.xml.             ... Read More

How to read value from string.xml in Android?

Azhar

Azhar

Updated on 03-Jul-2020 12:35:28

2K+ Views

This example demonstrates how to read value from string.xml 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/values/strings.xml    Sample    Test string Step ... Read More

How do I change current theme at runtime in my android app?

Azhar

Azhar

Updated on 03-Jul-2020 11:49:36

1K+ Views

This example demonstrates how do I change current theme at runtime in my 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 detect long press in Android?

Azhar

Azhar

Updated on 03-Jul-2020 11:28:52

1K+ Views

This example demonstrates how do I detect long Press 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 detect end of ScrollView in Android?

Azhar

Azhar

Updated on 03-Jul-2020 11:28:18

2K+ Views

This example demonstrates how do I detect end of scrollView 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