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

4.1.2 click problem #12

Open
sleith opened this issue Jan 22, 2016 · 5 comments
Open

4.1.2 click problem #12

sleith opened this issue Jan 22, 2016 · 5 comments
Assignees

Comments

@sleith
Copy link

sleith commented Jan 22, 2016

I have samsung galaxy s3, with os 4.1.2.
When i click on the button at a card, the click is not go to that shown card, instead somehow the click listener went to other card.
I test on other devices but works fine.
Any idea?
thx

@blipinsk
Copy link
Owner

blipinsk commented Feb 1, 2016

Hi @sleith
I have heard of an issue like that once, but couldn't really recreate it.

@vaniidroid
Copy link

I am facing the same issue in OS 4.1.1.
I called touch/click event in fragment's main framelayout and Log position(number) of the fragment instance. So when I tap on any card it called the last back visible card (fragment) click event. By tapping card 2,3,4,5... it calls click event of first card (fragment) and Log position 0.

Any help on this would be appreciated.

Thanks.

@vaniidroid
Copy link

If remove the code inside transformPage(View view, float position) method in StackPageTransformer.java, it calls correct click event of fragment i.e. top visible fragment's click event.

@vaniidroid
Copy link

Please let me know if any solution to resolve it.

@Giosk
Copy link

Giosk commented May 11, 2016

I found the same problem and also a solution. In my case I have three type of pages that are populated with text and images. During the filling of the data I set the OnClickListener on the items where the click is enabled otherwise I set the OnClickListener to null.
I know that is a bit tricky, but now it works.
Probably this would be a good solution also for you library @blipinsk .

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

No branches or pull requests

4 participants