How to set two custom actionbar button in left and right in android?

后端 未结 2 1516
挽巷
挽巷 2020-12-05 03:39

I am Using Sherlock library and i also implement with myself. My problem is that i added two items in menu, now i want 1 item in left of actionbar and second in right of act

2条回答
  •  臣服心动
    2020-12-05 03:55

    Additionally to Tomik's answer. You need to add

    ab.setDisplayShowCustomEnabled(true);
    

    in onCreate method, otherwise custom view does not appear (at least for me).

提交回复
热议问题