All you need to do is define a group
with an unique ID. I looked through NavigationView
‘s implementation, and it will create a divider every time the group id is changed.
e.g.
<group android:id="@+id/my_id">
<!-- Divider will appear above this item -->
<item ... />
</group>
More Related Contents:
- NavigationView get/find header layout
- How to create a simple divider in the new NavigationView?
- NavigationView and custom Layout
- How can I change separator color in NavigationView?
- How I can remove the unnecessary top padding of the Navigation view?
- Android support v23.1.0 update breaks NavigationView get/find header
- Failed to resolve: com.android.support:cardview-v7:26.0.0 android
- java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex
- How to use support FileProvider for sharing content to other apps?
- FloatingActionButton example with Support Library
- In android app Toolbar.setTitle method has no effect – application name is shown as title
- How do I add a library (android-support-v7-appcompat) in IntelliJ IDEA
- How to add footer to NavigationView – Android support design library?
- Change EditText hint color when using TextInputLayout
- ERROR :rendering problems The following classes could not be found android.support.v7.internal.widget.ActionBarOverlayLayout
- How to use and style new AlertDialog from appCompat 22.1 and above
- Android vector drawable app:srcCompat not showing images
- How to hide ToolBar when I scrolling content up?
- How to change Toolbar home icon color
- Wrong fragment in ViewPager receives onContextItemSelected call
- Rendering problems in Android Studio v 1.1 / 1.2
- How to handle onContextItemSelected in a multi fragment activity?
- FloatingActionButton with text instead of image
- RequiresApi vs TargetApi android annotations
- Android : Control Smooth scroll over recycler view
- Facebook SDK for Android duplicate support library on dependencies
- How to add dividers between specific menu items?
- Is there any way to control views inside NavigationView header?
- FragmentStatePagerAdapter with ChildFragmentManager – FragmentManagerImpl.getFragment results in NullPointerException
- How do the Android Support Libraries work?