Esempio n. 1
0
        protected override View GetViewImpl(Context context, ViewGroup parent)
        {
#warning convertView is junk here?
            View view = _layoutId > 0 ? DroidResources.LoadLayout(context, parent, _layoutId) : DroidResources.LoadLayout(context, parent, LayoutName);

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