2014-02-05 72 views
0

这个奇怪的线出现在我看来,不知道原因错误行奇怪DrawerLayout

enter image description here

编辑1:XML

<android.support.v4.widget.DrawerLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/drawer_layout" 
    android:layout_width="320dp" 
    android:layout_height="match_parent"> 

    <!-- Framelayout to display Fragments --> 
    <FrameLayout 
     android:id="@+id/frame_container" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" /> 

    <!-- Listview to display slider menu --> 
    <ListView 
     android:id="@+id/list_slidermenu" 
     android:layout_width="240dp" 
     android:layout_height="match_parent" 
     android:layout_gravity="start" 
     android:choiceMode="singleChoice" 
     android:divider="@color/list_divider" 
     android:dividerHeight="1dp"   
     android:listSelector="@drawable/list_selector" 
     android:background="@color/list_background"/> 

</android.support.v4.widget.DrawerLayout> 

回答

0

去你的XML文件,拿起DrawerLayout并将其剪切并放在标签之前......这样你就能看到它的设计。

因此,将DrawerLayout的LinearLayout放置在您的可见视图内,进行编辑并重新放置。

0

对不起,我的错。阴影造成这个问题

mDrawer.setDrawerShadow(R.drawable.drawer_shadow_rtl,GravityCompat.END);