Mohit Sharma
Mohit Sharma

Reputation: 21

Missing classes issue on a xml file?

The following classes could not be found: - android.support.design.internal.NavigationView (Fix Build Path, Edit XML, Create Class) Tip: Try to build the project. Tip: Try to refresh the layout.

Upvotes: 2

Views: 934

Answers (1)

Akhil
Akhil

Reputation: 6697

android.support.design.internal.NavigationView

Package name itself telling that it is inside internal package, and you are not supposed to use it directly.

Maybe what you need is something like this in your XML

<android.support.design.widget.NavigationView
         android:id="@+id/navigation"
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:layout_gravity="start"
         app:menu="@menu/my_navigation_items" />

Upvotes: 3

Related Questions