public MaterializeBuilder withActivity ( Activity activity ) { this . mRootView = ( ViewGroup ) activity . findViewById ( android . R . id . content ) ; this . mActivity = activity ; return this ; }
Pass the activity you use the drawer in ; ) This is required if you want to set any values by resource