Simply think of flags as features that you're applying to the object (in this case to the object Window
), and they are represented as integers. You can apply the flags using the final variables in Window
and WindowManager.LayoutParams
.
setFlags
replaces current flags.
addFlags
appends more flags and does not replace the current ones.