There is a trick for this. All you have to do is to use RelativeLayout
instead of LinearLayout
as the main container. It’s important to have android:layout_gravity="fill_horizontal"
set for it. That should do it.
More Related Contents:
- Remove shadow below actionbar
- Actionbar notification count icon (badge) like Google has
- How To show icons in Overflow menu in ActionBar
- Force overflow menu in ActionBarSherlock
- How to get text on an ActionBar Icon?
- ActionBar – custom view with centered ImageView, Action Items on sides
- android:actionBarStyle requires API level 11
- ActionBarSherlock – How to set the padding of each actionbar’s icon?
- Using ActionBarSherlock With the New SupportMapFragment
- Put a progressBar on ActionBar
- Spinner : onItemSelected not called when selected item remains the same
- Android: getSupportActionBar() always returns null in ActionBarSherlock library
- How can you implement multi-selection and Contextual ActionMode in ActionBarSherlock?
- How to display both icon and title of action inside ActionBar?
- Is it possible to change actionbar tab indicator programmatically
- How to change ActionMode background color in Android
- How to hide the share action (which use most) icon near the share action provider?
- ActionBarSherlock stacked action bar styling issue
- Action Bar icon size
- Change Actionbar height on Android JellyBean
- How do you turn off share history when using ShareActionProvider?
- Null pointer exception with “setDisplayHomeAsUpEnabled(boolean)” [duplicate]
- How to change action bar size
- How to make a ActionBar like Google Play that fades in when scrolling
- ProgressBar under Action Bar
- What is the equivalent of ActionBar in earlier sdk versions? [closed]
- Android Navigation Drawer on top ActionBar
- How do you remove the title text from the Android ActionBar?
- Action Bar menu item text color
- Action bar Back button not working