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

OnItemClickListener is not working. #41

Closed
sandeep-agrawal opened this issue May 5, 2015 · 2 comments
Closed

OnItemClickListener is not working. #41

sandeep-agrawal opened this issue May 5, 2015 · 2 comments

Comments

@sandeep-agrawal
Copy link

I am trying below code in my activity but is not calling the click listener.

DialogPlus dialogPlus = new DialogPlus.Builder(MainActivity.this)
                    .setAdapter(new SimpleAdapter(MainActivity.this,false))
                    .setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(DialogPlus dialog, View view) {
                            dialog.dismiss();
                        }
                    })
                    .setOnItemClickListener(new OnItemClickListener() {
                        @Override
                        public void onItemClick(DialogPlus dialog, Object item, View view, int position) {
                            dialog.dismiss();
                        }
                    })
                    .create();
            dialogPlus.show();

Am I doing anything wrong?

@orhanobut
Copy link
Owner

onCLickListener is redundant here but rest should work, but I don't see any list inside simpleadapter. Can you take a screenshot of the dialogplus in the app and show the whole code?

@orhanobut
Copy link
Owner

I think the problem is solved

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

2 participants