How to use OnClickListener in android

In android application development  we can use OnClickListener in two ways. In first method is add OnClickListenerto each button individually. Imagine that you have several buttons like below image. Now you want to use OnClickListener function in each button. Code snippet can be shown as package com.lister; import; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener;… Continue reading How to use OnClickListener in android