0

Is it possible to change overflow icon in code?

I read this solution: Changing overflow icon in the action bar

But I need to make it in code, to select white or grey style during runtime.

Is it possible?

1 Answer 1

1

You can only change this in a theme.

One potential solution would be to call setTheme as the very first thing in onCreate with different themes depending on whether you needed white or gray.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.