long1eu / long1eu/SpaceTabLayout

setTabOneOnClickListener(View.OnClickListener ll) doesn't detect the first click

Open
#25 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
265
PR merge metrics
No merged PRs in 30d

Description

With this setting of the onclick listener:
`tabLayout.setTabTwoOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(getContext(),"Hello!",Toast.LENGTH_SHORT).show();

}
});`
When you select the second tab the onclick doesn't execute. But when I click for second time with the second tab selected the onclick is executed.

Any idea??...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using TabLayout.setTabTwoOnClickListener with the View.OnClickListener shown in the report. Trace the tab-selection and click-listener behavior, then verify that the listener runs on the first selection of the second tab as well as subsequent clicks.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.