Android Navigation View transparency
问题 everyone. Is it possible to make Navigation View transparent? I have custom layout and try to set 50% transparent background for this layout, Navigation View or Drawer Layout . android:background="#80000000" but it doesn't give expected result. Anybody tried to do this? I would appreciate help. 回答1: you can try: navigationView.getBackground().setAlpha(122); Here you can set the opacity between 0 (fully transparent) to 255 (completely opaque). you can also use XML value alpha that takes double