首页 > 昨天手贱点了安卓的更新,今天左拉菜单不能正常工作了

昨天手贱点了安卓的更新,今天左拉菜单不能正常工作了

我有一个左拉菜单,分为两个部分,主菜单和设置菜单。

主菜单里面的项目比较多,设置菜单里面只有两项是设置和注销,设置菜单和主菜单之间有条分割线。

我想把设置菜单dock在最底部,然后上面的主菜单在手机屏幕比较小的时候可以滚动,但是最底部的设置菜单是永远固定在那里的,不可以滚动的。

这是我的代码:

      <!--The left navigation drawer -->
      <RelativeLayout
            android:id="@+id/relative_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="start">
            
            <!--设置菜单 -->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:id="@+id/BottomList"
                android:layout_alignParentBottom="true">
                <!-- 分割线 -->
                <View
                    android:id="@+id/item_separator"
                    android:layout_width="160dp"
                    android:layout_marginLeft="10dp"
                    android:layout_height="1dp"
                    android:background="#cdcdcd" />
                <ListView
                    android:id="@+id/left_drawer_bottom"
                    android:layout_width="180dp"
                    android:layout_height="match_parent"
                    android:choiceMode="singleChoice"
                    android:divider="#E3F2FD"
                    android:background="#E3F2FD"
                    android:paddingLeft="10dp" />
            </LinearLayout>
            
            <!-- 主菜单 -->
            <ListView
                android:id="@+id/left_drawer"
                android:layout_width="180dp"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:choiceMode="singleChoice"
                android:divider="#E3F2FD"
                android:background="#E3F2FD"
                android:paddingLeft="10dp"
                android:layout_above="@id/BottomList" />
        </RelativeLayout>

昨天之前还是工作正常的,昨天晚上更新了我的nexus6的一个官方补丁,今天在大屏手机上运行时菜单顶部就会出现一块空白,应该是我写的不规范,那具体我这种需求的布局应该怎么写呢?

【热门文章】
【热门文章】