Category Archives for Android

Updating Your Progressbar With A Count Down Timer

A Progress bar in android represents the progress of any task user has assigned in graphical view. In short, it shows a bar which represents the completion of a task. It is very common component in any user interface.   Check my blog on progress bar I have posted long ago. Today I will show […]

Read More...

Scroll To A Selected Position In Listview

Today I will explain different methods of scrolling. We will learn how to scroll top, bottom and any specific position in a listview in android. Sometimes in programming, we need our listview to scroll to any specific position. Let’s now try this with a code example. Follow the steps below: Step1: Create a new Android […]

Read More...

Lock Screen Notifications In Android 5.0

Android Lollipop is running with new features, and one of those is locked screen notifications. Up until this point, lock screen media controls must be defined by the use of a RemoteView, and media control notifications must be built using custom views. Today in this exercise we will see how to use the new MediaStyle for […]

Read More...

Implementing “Rate This App” Feature

If you have already published your app into android market, you might want to get a feedback from your users. This can be done in Google Play where users can rate an app and leave a comment. It will help you as a developer to improve your app and allows other users to see if […]

Read More...

Overlay On Camera Preview

In this example we will add an overlay on the Camera Preview SurfaceView. Also we will add some control such as “Take Picture” button on the overlay. Just to summarize this example not only shows how you can have a custom UI for your camera but it also explains how you can overlay images on […]

Read More...

Background ColorAnimator

ColorAnimator will change the background color of your view on button click. To implement color animation with ValueAnimator you will need to create valueanimator’s object and set animation properties to start the animation. Today in this example I will show you how you can change background color of an image view on a button click […]

Read More...

Reveal Animation Example Introduced In Android 5.0

Whenever you show or hide a group of UI elements or any view sometimes it will require some continuation for user’s ease. This is the scenario when reveal animation comes in the picture. Android 5.0, the lollipop version API level 21, introduced ViewAnimationUtils.createCircularReveal() method which returns an Animator which can animate a clipping circle, to […]

Read More...

Activity Transition Example

Activity transitions allow you to configure the appearance of changes in the user interface. You can animate changes in an app screen by defining each as a scene and controlling the way in which the transition changes the app appearance from one screen to another. Today, we will build a simple app with an animated […]

Read More...

Wearable ListView In Android Wear

This example will explain about the new widget WearableListView which is an optimized listview and is easy to use on smaller devices like android wearables. This tutorial will also explain the key classes and interfaces of WearableListView class. The key classes and interfaces of WearableListView class are listed below: 1.) WearableListView 2.) WearableListView.ViewHolder 3.) WearableListView.Adapter […]

Read More...

Ringtone Randomizer Example

It is always a good idea to modify the behavior of android device’s in a new and innovative ways. The Android platform gives it and developers a lot of freedom to build such apps so that its users would be able to make such modification. Today, in this tutorial we will learn how to create […]

Read More...