Android ActionBar setActionView layout issue

后端 未结 2 1374
说谎
说谎 2021-01-18 18:42

I\'ve been trying to use the setActionView from the ActionBar in ICS

Seems like it should be straight forward but somehow I\'m not getting the layout alignment that

2条回答
  •  情书的邮戳
    2021-01-18 19:15

    A little late but the right solution is not an absolute value such as 4dp. The right approach is to set the minWidth to ABS values:

    android:minWidth="@dimen/abs__action_button_min_width"
    

    Example progress bar:

    
    
    
    

提交回复
热议问题