When I tried to add - android:layout_gravity inside android.support.design.widget.NavigationView There is neither any option inside the design mode & when I tried to write the code it was displaying incorrect
After researching I found that Android Studio does this sometimes. The answer is actually quite simple.
This is the .xml file
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
>
</android.support.design.widget.NavigationView>