There is a Navigation Drawer in it a couple of fragments, and in one of them there is a button that should change the background in the Navigation Drawer menu. I can't even get the id layout to change its background. Here is the method code:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.menu_activity3, container, false); Button button1 = (Button) view.findViewById(R.id.button3); Layout asas = (Layout) getView().findViewById(R.layout.nav_header_navigation); button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { asas.setBackgroundResource(R.drawable.menu1); } }); return view; } 
View header = ((NavigationView)getActivity().findViewById(R.id.navigationDrawer)).getHeaderView(0); header.setBackgroundColor(Color.RED);View header = ((NavigationView)getActivity().findViewById(R.id.navigationDrawer)).getHeaderView(0); header.setBackgroundColor(Color.RED);- Yuriy SPb ♦