Category Archives: ActionBars

ActionBars in Android

By | February 7, 2015

1. How to start with ActionBar in Android? With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create… Read More »

How to change title and Subtitle text color and size of ActionBar in Android?

By | October 9, 2014

Here is a simple example that shows how you can change title and subtitle textcolor and its size in Android Method 1 ——– Changing the styles [For support Library] Go to Values/styles.xml copy this code to change the textcolor and actionbar background color. Note : For applying theme if you are not using the Support… Read More »

How to work in ActionBar support Library.

By | November 9, 2013

Hi all Today’s post is all about working with ActionBar support libraries from Google. These libraries support from Android 2.1 (API 7). For working with these libraries we have to follow some instructins. Please follow these steps exactly for setting up a Actionbar support library. 1. Start the Android SDK Manager. In the SDK Manager… Read More »

How to Create a new theme for ActionBar in Android.

By | October 12, 2013

In this post I will be telling you about how to change the default theme of ActionBar with our own custom One. Here I will be changing the background color, textColor and alpha of default ActionBar. Let’s see how it is done. By Checking out the styles.xml you will find that by default it looks… Read More »

How to create a SearchView with Filter mode in a ListView in Android?

By | June 1, 2013

Actually this is fairly simple. Android by default provides a SearchView class that has the ability to filter. Just look at the XML layout that I am using in this post. It consists of a SearchView and a ListView. The searchView searches the listview for the matched content. Click on the link to download the… Read More »

ActionBar with Search Option and other options in Android.

By | October 20, 2012

I have already shown some examples with ActionBar. This is the example showing how to start with ActionBar in android. 1. Android removes the need of Menu button from devices with ActionBar. 2. How to start with ActionBar in Android? 3. Dynamically Adding, Removing, Toggling and Removing all ActionBar Tabs in Android – Part 2?… Read More »

Dynamically Adding, Removing, Toggling and Removing all ActionBar Tabs in Android – Part 2?

By | October 8, 2012

Hi all.. In today’s post I will show you how to add actionbar tabs dynamically, remove one by one , hide and unhide them, removing all tabs at once etc. This simple java code does that. First create a project and in the MainActivity, paste this. You may be getting many errors, we will be… Read More »

How to find your Google Plus ID

By | September 27, 2012

This is so simple 1. Go to your Google + account (https://plus.google.com/). 2. Click on the Profile icon on the Left. 3. If you look at the URL in the address bar, it should look something like this: https://plus.google.com/104653270154306099169/posts 4. The long numerical string in the URL is your Google+ ID. Here is CoderzHeaven’s from… Read More »

How to start with ActionBar in Android?

By | August 23, 2012

With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create a new XML file inside it named “action_bar_menu.xml”.… Read More »