JakeWharton/ActionBarSherlock — Issue #99: ActionView is not updated
Author: ai212983
Created: 2011-11-02 11:00:20+00:00
State: open

Sorry for adding lame issue question (I have less than one week experience with android), but there's noone else to ask.

I'm inflating ActionBar's menu with following item:

```java

```

action_item_checkout is supposed to be an action view:

```java

```

In my code in onCreateOptionsMenu method I'm getting reference to this text view and changing it:

```java
MenuItem checkout = menu.findItem(R.id.menu_checkout);
mCheckout = checkout;
mCheckoutTextView = (TextView) checkout.getActionView().findViewById(R.id.checkout_text);
mCheckoutTextView.setText("wooot"); // XXX: Somewhy it changes nothing

Log.w("MyApp", "menuitem: " + checkout + ", textView: " + mCheckoutTextView + ", its text value: " + mCheckoutTextView.getText() );
```
Log tells me its text has changed, but nothing changes in ActionBar itself. Is it a bug or I'm doing something wrong here?