Quantcast
Channel: setOnClickListener – CoderzHeaven
Browsing all 12 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Customizing your button or TextView or another view in ANDROID.

Beautifying our applications is one of the main features of your application’s success. In ANDROID there are many possible ways to do this. For eg. We need to have different colors for our buttons,...

View Article



Image may be NSFW.
Clik here to view.

Simple CountDown Timer in android.

Here is a simple example on using a countdown timer in android. package pack.coderzheaven; import android.app.Activity; import android.os.Bundle; import android.os.CountDownTimer; import...

View Article

How to change the default transition between activities?

In android the default transition between activities is to slide from left to right. But with custom animations we can change that. First create a folder inside the res/drawable folder called “anim”....

View Article

Image may be NSFW.
Clik here to view.

Custom Alert in android.

We can create any type of alert in android. Today I will show a simple example showing how to create a custom alert in android. i.e you can provide any layout to your alert dialog. Now we will start....

View Article

Image may be NSFW.
Clik here to view.

How to use global variables in android? -Part 2

Hello all…. In a previous post I showed a method to share global variables across your android application. Those were done using a static class. Now today I will show you another way of sharing global...

View Article


Image may be NSFW.
Clik here to view.

Send Data when Clicking on a Notification in Android?

Hello everyone… I have shown in my previous tutorials on how to create notification in android and cancel it. This is the post showing this . Now today I am going to show how to send data when you...

View Article

Passing data between Intents or classes in ANDROID?

Many of our application reqiures sending data from one intent to another. This is done by putting data into one intent using putExtras() and getting it in the other intent using the getExtras() which...

View Article

Image may be NSFW.
Clik here to view.

How to copy a file to another saved in SDCARD in Android?

Hello all… This tutorial explains how to copy a file contents to another in Android. The file to copy is saved in SDCARD, however you can change the path to save it in your application sandbox. if you...

View Article


Image may be NSFW.
Clik here to view.

How to draw Arcs in Android using canvas?

This is a simple example showing how to draw Arcs in android, You can use this to create piecharts or someother similar thing you want. Here we have 3 classes. 1. GraphicsActivity.java 2....

View Article


Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

SnackBar and Floating Button Demo in Android

Snackbar is a UI element used for user feedback, just like a Toast except they provide action to interact with. Snackbar will be displayed at the bottom of the screen and can be swiped off in order to...

View Article

Image may be NSFW.
Clik here to view.

DataBinding in Android using Observable Collections

As I shown in the previous post where we used BaseObservable and ObservableField to update UI when binding object is changed, this post will show you another simple way to achieve this. Do Check my...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images