I have these two groups inside NavigationView menu XML:
<group>
<item
android:id="@+id/nav_top"
android:icon="@drawable/ic_flame"
android:checkable="true"
android:title="@string/top_rated" />
<item
android:id="@+id/nav_latest"
android:icon="@drawable/ic_clock"
android:checkable="true"
android:title="@string/latest_uploads" />
</group>
<group>
<item
android:id="@+id/nav_allvids"
android:icon="@drawable/ic_flame"
android:checkable="true"
android:title="@string/top_rated" />
<item
android:id="@+id/nav_allpics"
android:icon="@drawable/ic_shuffle"
android:checkable="true"
android:title="@string/random" />
</group>
I need to add space between them, the solution here: How can I increase margin between two particular groups? in Navigation Drawer is bad because the space is too much.
So how can I do that?