How to implement a listener on specific items using ListVIew?

You could base your condition on position itself: if (position == 0) { ... start activity ... }.

Thanks it works like a charm! You really save my arse, I have been struggling for days to figure that out, and in this little code you have saved my life. I have lived lol – user678044 Mar 27 at 14:48.

Maybe set different listeners in the getView method of the adapter.

I created a ListView with bunch of items, but I am not actually sure how to implement a listener on a specific items. Please help me! I would realy applreacte it a lot.

I tried to use this code, but when I click on any items, it will only bring me to the same Activity.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions