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

Get the cancelIcon & Icon view #7

Open
hoelee opened this issue Sep 2, 2017 · 1 comment
Open

Get the cancelIcon & Icon view #7

hoelee opened this issue Sep 2, 2017 · 1 comment

Comments

@hoelee
Copy link

hoelee commented Sep 2, 2017

Wish to additional customization. How to get the cancelIcon & Icon view from the JellyToolbar?
Thanks

@hoelee
Copy link
Author

hoelee commented Sep 3, 2017

    View rootView = toolbar.getRootView();

    AppCompatImageView ivCancelIcon = (AppCompatImageView) rootView.findViewById(R.id.cancelIcon);
    @SuppressLint("WrongViewCast")
    AppCompatImageView ivIcon = (AppCompatImageView) rootView.findViewById(R.id.icon);

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

1 participant