Clicklistener inside a clicklistener?

Can I create an onClick Listener inside an on click listener? My app is crashing if I try to do so.

TAs I request you to please clear my doubt

by doing this what you want to achieve?