How to create a fully customizable Toast which will use your own time duration and gravity and layout with ease without using the default toast in android?

Hello all We all have seen toasts right…ok then you have already customized your toasts right. Here I will show you a method to create toasts which will last the time you set and the gravity. You can download the code by clicking on the download links. This is the class that creates the toast… Read More »

Use of custom animations in a FragmentTransaction when pushing and popping a stack. or How to apply animations in Fragments when pushing on to a stack?

Hello all We have seen many examples of how to use fragments in android. You can search coderzheaven for all types of transactions using Fragments. Today in this post we will see how we can apply animations to Fragments when pushing on to a stack. This is fairly a long example. I will try to… Read More »

How to display a context menu from a fragment?

Hello all I think you all know about the context menu in android. It appears as a popup when you long press something. Fragment also provides some methods for registering with the contextmenu and showing it. Let’s see how we can do it. You can click on the download links to download the source code.… Read More »

How to initialize a Fragements with attributes as a Bundle at runtime and from attributes in a layout?

This post Demonstrates a fragment that can be configured through both Bundle arguments and layout attributes. You can click on the links to download the source code. Here there are two fragments in the layout, one is directly in the layout and the other is created dynamically with arguments at runtime. Here is how we… Read More »

How to hide and show a Fragment with animation in Android? and How to retain a state in a Fragment in Android?

Hello everyone This posts helps you to hide and show a fragment with animation (without XML files animation). And also it shows how to retain a saved state(for eg: a value in a textview). A little about Fragments A Fragments is an independent component which can be connected to an activity. A Fragment typically defines… Read More »

Google’s Android will beat Apple’s iphone in total number of apps downloaded in next few months.

Analysts are saying that Google play store will be the most popular platform for downloading mobile apps in the next few months. History of Google Play Google Play, formerly known as the Android Market, is a digital application distribution platform for Android and an online electronics store developed and maintained by Google. The service allows… Read More »

How to create animation by default in a GridLayout in Android?

This example shows you how to create animation using the default XML tag in a gridview. This application demonstrates how to use the animateLayoutChanges tag in XML to automate transition animations as items are removed from or added to a container. Click on the download link to get the source code. Let’s have a look.… Read More »

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

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 »

Google to unveil Moto X to take on Apple.

Google bought Motorola in 2011 and ever since there has not been a phone from Google and Motorola. Now it is that Google will be unveiling Moto X to take on rival Apple. iPhone overprice tag has not come down since its launch in 2007. This will be a area where Google and Motorola will… Read More »

Wave Scale Animation in GridViews in Android

Hello all Previously I have shown many posts where we animate each row of the GridView randomly, linearly etc. GridView RandomFade animation in Android and Cascade animation in a ListView in Android. In today’s post I will show you how to create a wave scale animation in the ListViews. Please refer to my old posts… Read More »

Samsung Galaxy S4

Display 5inch Full HD Super AMOLED (1920 x 1080) display, 441 ppi AP 1.9 GHz Quad-Core Processor / 1.6 GHz Octa-Core Processor The seletion of AP will be differed by markets Network 2.5G (GSM/ GPRS/ EDGE): 850 / 900 / 1800 / 1900 MHz 3G (HSPA+ 42Mbps): 850 / 900 / 1900 / 2100 MHz… Read More »

How to create a beautiful wheel animation in android?

Today’s post is about animation, a beautiful animation, exploring capabilities of android. You can click on the link to download the code. Here we will have three java classes and no XML files. 1. GraphicsActivity.java 2. PictureLayout.java 3. Sweep.java At first we start with PictureLayout.java Now our second java file, GraphicsActivity.java No need to declare… Read More »

900 million Android activations

Google’s Android OS has more than 900 million users, the company said Wednesday at its I/O event began in San Francisco. Google also announced several APIs that will let developers add more capabilities to their Android apps, including in the areas of location and improving battery life. “It’s been an amazing year for Android developers,”… Read More »

How to create a List with Alphabet Overlay in Android

Hello everyone… Today’s post is about simply loading the ListView with some alphabetically sorted data BUT with the first alphabet overlay over them when you scroll. It’s same as the overlay you see when a user scrolls through the contacts application. SO Let’s start with the code. At first I will create a class that… Read More »

How to start with Android – Basics and Fundementals.

Hello all This post for everyone who like to start with android and know the basics. It includes Introduction to Android Android Architecture Dalvik Virtual Machine Android Application Fundamental Components The above links will be going by another android blog which also teaches you the basics of Android. Check out these links and start coding… Read More »

How to use ImageSwitcher in Android?

You can read more about ImageSwitcher here http://developer.android.com/reference/android/widget/ImageSwitcher.html Click on the link below to download the code. This is the layout that contains the ImageSwitcher What we will do is we will load some images into the Gallery and then load each image into the ImageSwitcher on clicking on each item in the Gallery. Here… Read More »

ListView Bottom to Top Animation in Android.

Like my previous posts animation chapter is again continued. This time the animation in on a ListView from Bottom to Top. You have already seen animations from Top to Bottom in my previous posts. See some of my posts here. All animation posts from CoderzHeaven is here Click on the download link at the bottom… Read More »

Creating a Drawable animation in Android.

This is a simple example of how to animate a drawable in Android. This example is from the official android demo applications. Here we have 5 java classes. AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java Download the complete source code from here Join the Forum discussion on this post

GridView RandomFade animation in Android

In some of my older posts I have already showed a lot of animations on ListView and GridViews. Search coderzheaven for ListView and GridView animations if you want to see the articles and posts. This is also yet another post on animation. Here what I will do is create an animation in a GridView such… Read More »

Cascade animation in a ListView in Android.

Here is a simple example for cascade animation of a listview in android. We use these classes for achieving this. 1. AnimationSet Represents a group of Animations that should be played together. The transformation of each individual animation are composed together into a single transform. If AnimationSet sets any properties that its children also set… Read More »

Multiple Selection GridView in Android

This is a simple post that helps you to do multiple selection in a ListView. Check out previous posts for 3D animation in a Listview. At first we will see the XML layout file. This layout contains a gridview since we are dealing with it only. grid_1.xml Now the MainActivity that does all the work… Read More »

Different types of Animation – Push Up in, Push Up Out, Push Left in, Push Left Out, HyperSpace In, HyperSpace Out in a ViewFlipper in Android.

Hello all…. This is going to be a big post.. Check out my previous post for a rotate3D animation between a ListView and an Image. How to create a rotate 3D Animation between a ListView and an ImageView in Android? Today I will show you different types of Animations using ViewFlipper in a textView. Here… Read More »

How to create a rotate 3D Animation between a ListView and an ImageView in Android?

At first we will create a class called “Rotate3dAnimation” which is responsible for the 3D Animation. The Rotate3dAnimation.java looks like this. The Matrix class holds a 3×3 matrix for transforming coordinates. Matrix does not have a constructor, so it must be explicitly initialized using either reset() – to construct an identity matrix, or one of… Read More »