0
我该如何在图像中设置四个图标(书签,搜索,菜单,位置支持)?在ActionBar中设置了四个图标android
是否可以通过操作栏?或告诉我任何其他选择。
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>
它是这样的形象使用这个未来。
您可以使用TabView的或工具栏这种行为 –
你使用这样的菜单 <菜单的xmlns:安卓= “http://schemas.android.com/apk/res/android” 的xmlns:应用程序=“http://schemas.android.com/apk/res-auto” xmlns:tools =“http://schemas.android.com/tools” > –
Hemina
我将如何设置四个图标? – user6313669