android.app.Activity.setContentView C# (CSharp) Method

setContentView() public method

public setContentView ( android arg0, android arg1 ) : void
arg0 android
arg1 android
return void
        public virtual void setContentView(android.view.View arg0, android.view.ViewGroup.LayoutParams arg1)
        {
            global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.app.Activity.staticClass, "setContentView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V", ref global::android.app.Activity._m45, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
        }

Same methods

Activity::setContentView ( android arg0 ) : void
Activity::setContentView ( int arg0 ) : void

Usage Example

        public static void AttachTo(this System.Windows.Forms.Control e, Activity Container)
        {
            var i = (__Control)(object)e;

            i.InternalSetContext(Container);

            var Child = i.InternalGetElement();

            Container.setContentView(Child);
        }
Activity