Refresh menu item animation in ActionBarSherlock

前端 未结 2 1831
南方客
南方客 2020-12-19 02:18
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {

    case android.R.id.home:
        return true;

    case R.id.searchIcon:
           


        
2条回答
  •  借酒劲吻你
    2020-12-19 02:38

    I tried the exact same code you use and it works just fine for me. The only things that might be different are two things:

    1) the refresh_action_view layout (here's mine for comparison):

    
    
    

    2) The display options of your action bar (here's my styles.xml for comparison).

    
    
    
    
    
    
    
    

    Can you share yours as well?

提交回复
热议问题