Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

OnItemClickListener to get row & column no. #2

Closed
therahulmeena opened this issue Oct 9, 2015 · 3 comments
Closed

OnItemClickListener to get row & column no. #2

therahulmeena opened this issue Oct 9, 2015 · 3 comments

Comments

@therahulmeena
Copy link

Hi florent37,

Thanks for this awesome library but I'm having an issue with implementing the item click listener for this view. I have tried modifying the adapter but with that I am only being able to fetch either row no or column no at once. Without the click functionality it only looks like a gallery.

@Shirish8893
Copy link

Hi florent37,

I am trying to implement onItemclicklistener to this so that it can open the image in full screen from the path we mentioned at viewHolder. Can you help me on this? I would really appreciate.

@Shirish8893
Copy link

Hi @rhaul

I saw you were also trying for same. Did you find the solution bro?

@florent37
Copy link
Owner

done in the 1.0.2,

materialLeanBack.setOnItemClickListener(new MaterialLeanBack.OnItemClickListener() {
            @Override
            public void onTitleClicked(int row, String text) {
                Toast.makeText(getApplicationContext(), "onTitleClicked "+row+" "+text, Toast.LENGTH_SHORT).show();
            }

            @Override
            public void onItemClicked(int row, int column) {
                Toast.makeText(getApplicationContext(), "onItemClicked "+row+" "+column, Toast.LENGTH_SHORT).show();
            }
        });

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

No branches or pull requests

3 participants