java - change ActionBar layout when click on button -


I want to change my actionbank for an actionbar with custom layout when I click on a button.

I could not find the solution.

I tried

  getActionBar () SetCustomView (R.layout.actionbar_layout);  

But it does not work.

Thank you for your help!

Try this code:

  getActionBar () SetDisplayShowCustomEnabled (true); Layout Inflight Inflator = (Layout Influenza) getSystemService (References LAOUT_INFLATER_SERVICE); View View = inflater.inflate (R.Let.actionbar_layout, empty); GetActionBar () setCustomView (see).  

I hope this will help you.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -