Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click event #1

Open
nikeru8 opened this issue Jan 3, 2018 · 5 comments
Open

click event #1

nikeru8 opened this issue Jan 3, 2018 · 5 comments

Comments

@nikeru8
Copy link

nikeru8 commented Jan 3, 2018

It was an interesting project.
I would like little more detail in some parts though. I wonder, what do you suggest in order to add click event in each holder?
For example, I create dog cat and duck ViewHolder for them that put TextView in every item.

and I press Dog and then cat will change it’s TextView.
Thank you.

@meierjan
Copy link
Owner

meierjan commented Jan 3, 2018

For example, I create dog cat and duck ViewHolder for them that put TextView in every item. And I press Dog and then cat will change it’s TextView.

If you click on a Dog the Cat should change?

Please write in more detail and I will try to help you.

@nikeru8
Copy link
Author

nikeru8 commented Jan 5, 2018

I write a example and this is my dogViewHolder
when I selected spinner inside dogViewHolder the amounts of cat will be change.
words in TextView in cat will be change too.
https://imgur.com/a/9YT9w

I still have no idea how to achieve my goal.
thanks a lot

@meierjan
Copy link
Owner

meierjan commented Feb 18, 2018

So you have like:

List:
-------------
[dog catsSpinner#1]
[cat]
List:
-------------
[dog catsSpinner#4]
[cat]
[cat]
[cat]
[cat]

The number in catsSpinner is the amount of cats in the list and you want to change this dyanically?

@vsukharew
Copy link

@meierjan the expected behavior is:

  • When you click at the Cat item, you should go to one screen
  • When you click at the Dog item, you should go to the other screen

and so on

@vsukharew
Copy link

How does this implementation achieve such behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants