Found 1966 Articles for Apps/Applications

How to enable back button in action bar?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrates How to get action bar tittle 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. In the above code, we have taken text view.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.app.ActivityManager; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity ... Read More

How to enable back button action in action bar?

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:25

287 Views

This example demonstrates How to enable back button action in the action bar.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.     In the above code, we have taken a text view.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.app.ActivityManager; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.TextView; public class ... Read More

How to disable action bar tittle in android?

Nitya Raut
Updated on 30-Jul-2019 22:30:25

189 Views

This example demonstrates How to disable action bar tittle 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.     In the above code, we have taken text view.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.app.ActivityManager; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity ... Read More

How to clear heap watch limit in android?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

147 Views

This example demonstrates How to clear heap watch limit 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. In the above code, we have taken text view to clear heap limit.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.app.ActivityManager; import android.app.admin.DevicePolicyManager; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { ... Read More

How to add action icon in android?

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:25

289 Views

This example demonstrates how to add an action icon 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.     In the above code, we have taken text view to action bar icon status.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.app.ActivityManager; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.TextView; ... Read More

How to set ImageView in edittext while entering text?

George John
Updated on 27-Jun-2020 06:59:33

412 Views

This example demonstrate about How to set ImageView in edittext while entering text.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.     In the above code, we have taken edit text and added background as background.xml.Step 3 − Add the following code to drawable/ background.xml             Step 4 − Add the following code to java/MainActivity.xmlpackage com.example.myapplication; import android.annotation.TargetApi; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; ... Read More

How to set ImageView in edittext?

Arjun Thakur
Updated on 27-Jun-2020 06:58:59

181 Views

This example demonstrate about How to set Image View in edit text.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.     In the above code, we have taken edit text and added background as background.xml.Step 3 − Add the following code to drawable/ background.xml             Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the ... Read More

How to draw triangle shape in android?

Chandu yadav
Updated on 27-Jun-2020 06:56:50

2K+ Views

This example demonstrate about How to draw triangle shape 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.     In the above code, we have taken imageview and added background as background.xml.Step 3 − Add the following code to drawable/ background.xml     Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from android studio, open one of ... Read More

How to draw tick mark with circle background shape in android?

Ankith Reddy
Updated on 27-Jun-2020 06:56:20

828 Views

This example demonstrates How to draw tick mark with circle background shape 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.     In the above code, we have taken image view and added background as background.xml.Step 3 − Add the following code to drawable/ background.xml     Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from the ... Read More

How to draw star shape in android?

George John
Updated on 27-Jun-2020 06:55:40

935 Views

This example demonstrate about How to draw star shape 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.     In the above code, we have taken imageview and added background as background.xml.Step 3 − Add the following code to drawable/ background.xml     Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from android studio, open one of ... Read More

Advertisements