How can I make the items on ActionBar to be one on the left, one in the center and one on the right?

前端 未结 2 1932
萌比男神i
萌比男神i 2021-01-31 11:37

I\'m using actionbarsherlock to do it. Example of what I want in the actionbar:
[LOGIN]     [COMPANY LOGO]    &nb

2条回答
  •  猫巷女王i
    2021-01-31 12:17

    Wrap the items inside a RelativeLayout. Then use:

    android:layout_alignParentLeft
    android:layout_alignParentCenter
    android:layout_alignParentRight
    

提交回复
热议问题