long1eu / long1eu/SpaceTabLayout
setTabOneOnClickListener(View.OnClickListener ll) doesn't detect the first click
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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