if(Build.VERSION.SDK_INT>=21){ getSupportActionBar().setElevation(0); } 转载于:https://www.cnblogs.com/spyrx7/p/android.html