2016-08-09 34 views
0

Wie kann ich vier Symbole (Lesezeichen, Suche, Menü, locationdrop) in ActionBar wie ein Bild enter image description here?In ActionBar vier Symbol in Android

Ist es möglich durch Aktionsleiste oder nicht? oder erzähl mir eine andere Option.

menu_main.xml

<menu xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    xmlns:tools="http://schemas.android.com/tools" 
    tools:context="com.comida.MainActivity"> 
    <item 
     android:id="@+id/action_settings" 
     android:orderInCategory="100" 
     android:title="@string/action_settings" 
     app:showAsAction="never" /> 
</menu> 

style.xml

<resources xmlns:tools="http://schemas.android.com/tools"> 


    <style name="AppTheme" parent="@android:style/Theme.Holo.Light"> 
     <item name ="android:actionBarStyle">@style/CustomActionBar</item> 

    </style> 

    <!-- Application theme. --> 
    <style name="CustomActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> 
     <item name="android:background">#f26925</item> 
     <item name="android:logo">@android:color/transparent</item> 
<item name="android:titleTextStyle">@style/CustomTextColor</item> 
     <!-- All customizations that are NOT specific to a particular API-level can go here. --> 
     <item name="android:windowNoTitle">true</item> <!-- Hides the Action Bar --> 
     <item name="android:windowFullscreen">true</item> <!-- Hides the status bar --> 
    </style> 

    <style name="CustomTextColor" parent="@android:style/TextAppearance" > 
     <item name="android:textColor">#0000ff</item> 



    </style> 

</resources> 

Es gefällt dieses Bild kommt diese verwenden.

enter image description here

+0

Sie können TabView oder Symbolleiste für dieses Verhalten verwenden –

+0

Sie dieses Menü verwenden Hemina

+0

wie würde ich vier symbole einstellen? – user6313669

Antwort