Search in sources :

Example 11 with NavigationView

use of com.google.android.material.navigation.NavigationView in project AndroidUtilCode by Blankj.

the class CommonActivityDrawerView method getContentView.

public View getContentView() {
    mBaseDrawerRootLayout = mBaseActivity.findViewById(R.id.baseDrawerRootLayout);
    mBaseDrawerContainerView = mBaseActivity.findViewById(R.id.baseDrawerContainerView);
    NavigationView nav = mBaseActivity.findViewById(R.id.baseDrawerNavView);
    nav.setNavigationItemSelectedListener(mListener);
    return mBaseDrawerContainerView;
}
Also used : NavigationView(com.google.android.material.navigation.NavigationView)

Aggregations

NavigationView (com.google.android.material.navigation.NavigationView)11 View (android.view.View)6 Intent (android.content.Intent)4 TextView (android.widget.TextView)4 ActionBarDrawerToggle (androidx.appcompat.app.ActionBarDrawerToggle)4 ImageView (android.widget.ImageView)3 DrawerLayout (androidx.drawerlayout.widget.DrawerLayout)3 Handler (android.os.Handler)2 Toolbar (androidx.appcompat.widget.Toolbar)2 FragmentManager (androidx.fragment.app.FragmentManager)2 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)2 RecyclerView (androidx.recyclerview.widget.RecyclerView)2 IntentFilter (android.content.IntentFilter)1 Build (android.os.Build)1 Bundle (android.os.Bundle)1 Pair (android.util.Pair)1 KeyEvent (android.view.KeyEvent)1 Menu (android.view.Menu)1 MenuItem (android.view.MenuItem)1 ViewGroup (android.view.ViewGroup)1