简体   繁体   English

如何展开Android ActionBar?

[英]How to expand android ActionBar?

How can i expand the actionbar like PlayNewsstand application and the image below : 我如何展开动作栏,例如PlayNewsstand应用程序和以下图片:

在此处输入图片说明

在此处输入图片说明

我正在寻找的东西在这里找到

For your concern try using this in your manifest file .. 为了您的关心,请尝试在清单文件中使用它。

yourapp:showAsAction="ifRoom"

Ex: 例如:

<menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:yourapp="http://schemas.android.com/apk/res-auto" >
    <item android:id="@+id/action_search"
          android:icon="@drawable/ic_action_search"
          android:title="@string/action_search"
          yourapp:showAsAction="ifRoom"  />
    ...
</menu>

Complete reference :: http://developer.android.com/guide/topics/ui/actionbar.html 完整参考:: :: http://developer.android.com/guide/topics/ui/actionbar.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM