Good day, there is an action bar navigation type NAVIGATION_MODE_TABS and the search button in the menu, but in the portrait orientation the text is not visible next to the icon although it stands withText,
alt text
And in the landscape button and tabs in one line, but the button has a signature
alt text

<item android:id="@+id/action_search_hotel" android:title="@string/action_search_for_hotel" android:icon="@drawable/ic_action_search" sabd:showAsAction="withText|ifRoom|collapseActionView|" sabd:actionViewClass="android.support.v7.widget.SearchView" /> 

I would like the buttons to always see the text and the tabs in my orientations were below.
Thank you in advance.

  • one
    The Google team does not recommend using DrawerNavigation + ActionBar (NAVIGATION_MODE_TABS) - Opalosolo
  • thanks didn’t know - gadfil
  • "The Google team does not recommend using DrawerNavigation + ActionBar (NAVIGATION_MODE_TABS)" because it is redundant. Either this or that is quite logical. - DroidAlex
  • by the way, despite the recommendations, play marcet contains both tabs and a side menu - gadfil

1 answer 1

I advise you to use android.support.design.widget.TabLayout

Here is an example https://github.com/codepath/android_guides/wiki/Google-Play-Style-Tabs-using-TabLayout