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

Custom click listener #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rajohns08
Copy link

Allow someone to set their own custom click listener for media messages. Fall back to default full screen click listener if one isn't manually set.

MediaMessage message = new MediaMessage();
message.onClickListener = new OnClickListener() {
    @Override
    public void onClick(View view) {
        Log.d("TAG", "Do something custom");
    }
};

@luugiathuy
Copy link

I think Message, TextMessage or MediaMessage are our Models for messages. They should not contain View event attributes. Perhaps we can define in the MessageItem classes instead?

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

Successfully merging this pull request may close these issues.

2 participants