This may seem like an absurd question, but I would like to be able to call the code associated with the event of pressing a certain button.
I was looking for information, and I see nothing that can help me.
An example of what I want:
final ImageView img23 = (ImageView) vTweets.findViewById(R.id.ImageView01); img23.setId(t); img23.setOnClickListener(new OnClickListener() { public void onClick(View v) {
thanks
source share