public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.Inflate(Resource.Layout.InvoiceScreen, container, false); view = v; InitActionBar(); invoiceTabHeader = InvoiceTabHeader.NewInstance(this); invoiceTabDetails = InvoiceTabDetails.NewInstance(this); invoiceTabDetails.DetailsChanged += invoiceTabDetails_DetailsChanged; invoiceTabHeader.CustomerChanged += invoiceTabHeader_CustomerChanged; tabHost = (TabHost)view.FindViewById(Resource.Id.tabhost); tabHost.Setup(); InitializeTab(); /*if (isTablet) * { * if (Common.isPortrait(this.Activity)) * { * InitPopupMenu(); * } * } */ GC.Collect(); return(v); }
public static InvoiceTabHeader NewInstance(InvoiceInfoFragment parentView) { var detailsFrag = new InvoiceTabHeader { Arguments = new Bundle() }; detailsFrag.Arguments.PutLong("ObjectId", parentView.ObjectId); detailsFrag.invoiceParentView = parentView; return(detailsFrag); }