Skip to content

Instantly share code, notes, and snippets.

@Logan676
Created August 14, 2017 10:28
Show Gist options
  • Save Logan676/6e4314dec9022236dc24587c3d650127 to your computer and use it in GitHub Desktop.
Save Logan676/6e4314dec9022236dc24587c3d650127 to your computer and use it in GitHub Desktop.
把系统自带的背景去掉
getWindow().setBackgroundDrawable(new ColorDrawable(0));
try {
getWindow().getDecorView().setBackgroundDrawable(null);
} catch (Throwable e){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment