Language

LauncherActivity.OnSetContentView Method

Definition

Override to call setContentView() with your own content view to customize the list layout.

[Android.Runtime.Register("onSetContentView", "()V", "GetOnSetContentViewHandler")]
protected virtual void OnSetContentView();
[<Android.Runtime.Register("onSetContentView", "()V", "GetOnSetContentViewHandler")>]
abstract member OnSetContentView : unit -> unit
override this.OnSetContentView : unit -> unit
Attributes

Remarks

Override to call setContentView() with your own content view to customize the list layout.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.LauncherActivity.onSetContentView.

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.

Applies to