How do you get clicked Component?

How to get clicked Component in Extension developement

What do you mean?

I am creating list view extension and I want to get clicked item of list view

I guess there is a OnItemClickListener in listview

I know this
How to return clicked item of list view

You can return its position

  listView.setOnItemClickListener(new OnItemClickListener() {
     public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
         MyEvent(position, view);

It can be possible like this

1 Like

Please give full code

No one will give you full code. You have to do it yourself

I can not understand correctly with this code

I think the code is enough to understand (According to question)

Please explain me

It's a call back (View.OnClickListener). It's a closing brace for that.

Anyone explain me properly or give me full code

Learn the basics,
Its not important to start with something big!

Whatever topic I create on this community no one help me :expressionless: :neutral_face: every one say me that learn basic
But I have learned basic

Learn basics of Android Development, not of java

I also learned that

Once please help me

Click Listeners are basic. You still have no idea about them