LoadLayout() private static méthode

private static LoadLayout ( Android.Content.Context context, Android.Views.ViewGroup parent, int layoutId ) : Android.Views.View
context Android.Content.Context
parent Android.Views.ViewGroup
layoutId int
Résultat Android.Views.View
Exemple #1
0
        protected override View GetViewImpl(Context context, View convertView, ViewGroup parent)
        {
#warning convertView is junk here?
            View view;
            if (_layoutId > 0)
            {
                view = DroidResources.LoadLayout(context, parent, _layoutId);
            }
            else
            {
                view = DroidResources.LoadLayout(context, parent, LayoutName);
            }

            if (view == null)
            {
                Log.Error("Android.Dialog", "ViewElement: Failed to load resource: " + LayoutName);
            }
            else if (Populate != null)
            {
                Populate(view);
            }
            return(view);
        }