neo
neo

Reputation: 177

fragment navigation drawer items not displaying

I'm working with material design and for some reason my navigation drawer is not displaying the drawer items. I think it may have something to do with the below:

enter image description here

My gradle looks normal as well.

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:recyclerview-v7:+'
compile "com.android.support:appcompat-v7:22.1.0"
}

Upvotes: 0

Views: 117

Answers (1)

KKGanguly
KKGanguly

Reputation: 343

RecyclerView needs a LayoutManager, have you added this?

recyclerView.setLayoutManager(new LinearLayoutManager(context));

If it still does not work, try an invalidate cache and restart in android studio. If it still does not work you have to download and install the recent version of android studio and it will work.

Upvotes: 1

Related Questions