View.SetFitsSystemWindows(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets whether or not this view should account for system screen decorations
such as the status bar and inset its content; that is, controlling whether
the default implementation of #fitSystemWindows(Rect)
will be
executed.
[Android.Runtime.Register("setFitsSystemWindows", "(Z)V", "GetSetFitsSystemWindows_ZHandler")]
public virtual void SetFitsSystemWindows (bool fitSystemWindows);
[<Android.Runtime.Register("setFitsSystemWindows", "(Z)V", "GetSetFitsSystemWindows_ZHandler")>]
abstract member SetFitsSystemWindows : bool -> unit
override this.SetFitsSystemWindows : bool -> unit
Parameters
- fitSystemWindows
- Boolean
If true, then the default implementation of
#fitSystemWindows(Rect)
will be executed.
- Attributes
Remarks
Sets whether or not this view should account for system screen decorations such as the status bar and inset its content; that is, controlling whether the default implementation of #fitSystemWindows(Rect)
will be executed. See that method for more details.
Note that if you are providing your own implementation of #fitSystemWindows(Rect)
, then there is no need to set this flag to true -- your implementation will be overriding the default implementation that checks this flag.
Java documentation for android.view.View.setFitsSystemWindows(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.