android - two dividers in navigation drawer -


My app has an Android navigation drawer. Everything works fine, but when my drawer looks, there are two split lines between them. Items are not there.

My two drawer files

custom_drawer_item.xml

/ P>

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "horizontal" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentLeft = "true" Android: orientation = "vertical" Android: layout_marginTop = "0dp" Android: background: LinearLayout Android: id = "@ + id / itemlayout" Android: layout_width = = "Android: Att / Active Backband Indicator" & gt; & Lt; LinearLayout Android: layout_width = "match_parent" android: layout_height = "match_parent" android: minHeight = "60dp" & gt; & Lt; Android: layout_height = "wrap_content" android: paddingRight = "6dp" Android: paddingTop = "10dp" / & gt; & Lt; Android: layout_height = "wrap_content" android textAppearance = Android: textSelectHandleLeft = "@ + id / drawer_icon" Android: TextCaller: "Android: attr / textAppearanceLarge" id = "@ + id / drawer_itemName" android: layout_width = "wrap_content" = "#FFFFF" Android: Paddington = "10 DP" /> & Lt; / LinearLayout & gt; & Lt; Android: layout_width = "match_parent" android: layout_height = "1DP" Android: layout_marginBottom = "1DP" Android: layout_marginTop = "1DP" Android: layout_marginLeft = "10dp" Android: layout_marginRight = "10dp" Android: background = "#DADADC "& Gt; & Lt; / View & gt; & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt;  

activity_main.xml

  & lt; Android.support.v4.widget.DrawerLayout xmlns: android = "http://schemas.android.com/ Apk / res / android" android: id = "@ + id / drawer_layout" Android: layout_width = "match_parent" Android: Layout_height = "match_parent" & gt; & Lt; FrameLayout Android: id = "@ + id / content_frame" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; & Lt; / FrameLayout & gt; & Lt; Android: layout_heid = "match_parent" android: layout_gravity = "start" android: choiceMode = "singleChoice" Android: Divider = "# B80000" Android: DivideHit = "1 DP" Android: Background = "# 076672" /> & Lt; /android.support.v4.widget.DrawerLayout>  

If you still can not get it, please ask me for the image. L Show thnx in advance

This is because you have view : Android: layout_marginLeft = "10dp" Android: layout_marginBottom = "1DP" Android: layout_marginTop = "1DP" Android: layout_width = " = "10dp" Android: background = "# DADADC" & gt; & Lt; / View & gt;

Under your custom_drawer_item.xml layout.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -