sreejith v s
sreejith v s

Reputation: 1364

How to remove action view from android menu item?

I added a progress-bar on menu using menuItem.setActionView(new ProgressBar(getActivity())) when tapping on menu item.And after completing my operation I want to remove that progress.I tried with menuItem.SetActionView(null) But it didn't worked!

Upvotes: 1

Views: 838

Answers (1)

sreejith v s
sreejith v s

Reputation: 1364

It was my mistake.'menuItem.SetActionView(null)' will work perfectly.

Upvotes: 3

Related Questions