ssummeraw 2013-07-03 09:59 采纳率: 10%
浏览 2076

在layout上显示menu bar的问题

在layout包含两个 linearlayout:

如下:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/LinearLayout1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >

    <LinearLayout
        android:id="@+id/l1"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="right"
        android:orientation="vertical" >

        <Button
            android:id="@+id/b1"
            android:layout_width="18dp"
            android:layout_height="match_parent"
            android:text=" ﹒﹒﹒"
            android:textSize="20dp" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/l2"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:background="#000000"
        android:orientation="vertical" >

    </LinearLayout>

</LinearLayout>

是 l1 和 l2。
我想让 menu bar只属于 l1,再在l1上显示。
但是不在l1 和 l2 上交叉显示。
如何显示?

  • 写回答

1条回答

  • csh_34 2013-07-04 07:33
    关注

    你不能控制 menu options 的 layout,你应该自定义 menu 来达到你想要的效果。

    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?