Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

怎么获取children的position呢?

Open
#115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
mobile

Research direction

Start by tracing holder.setOnClickListener(R.id.textview, TestActivity.this) and the onClick callback shown in the issue. Determine how the clicked child’s position is exposed by this adapter, and consider the work done when the Event is retrieved from mList at that position.

Written by the indexing model from the issue text.

Description

holder.setOnClickListener(R.id.textview,TestActivity.this);

@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.textview:
//Event event = mList.get(??);
break;
default:
break;
}
}

Dominant language
Java
Stars
4.7k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

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.

More from hongyangAndroid/baseAdapter

All issues in hongyangAndroid/baseAdapter

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.