Ejemplo n.º 1
0
        //Mostra o Preview da Foto + Dados
        public Android.Views.View GetInfoContents(Marker marker)
        {
            var inflater = Android.App.Application.Context.GetSystemService(Context.LayoutInflaterService) as Android.Views.LayoutInflater;

            if (inflater != null)
            {
                var PIN = GETPinoFoto(marker);
                if (PIN == null)
                {
                    throw new Exception("Pino Não encontrado");
                }

                Android.Views.View view = inflater.Inflate(Resource.Layout.MapInfoWindow, null);

                //Nome Usuário
                TextView InfoUsuarioNome = view.FindViewById <TextView>(Resource.Id.InfoWindowUsuarioNome);
                if (InfoUsuarioNome != null)
                {
                    InfoUsuarioNome.SetText(PIN.POST.UsuarioDados.Nome, TextView.BufferType.Normal);
                }

                //FOTO
                ImageView InfoFoto = view.FindViewById <ImageView>(Resource.Id.InfoWindowFoto);
                if (InfoFoto != null)
                {
                    GetImageBitmapFromUrl(InfoFoto, PIN.POST.FotoURLMiniatura);
                }

                return(view);
            }
            return(null);
        }
Ejemplo n.º 2
0
 public ItemViewHolder(Android.Views.View itemView) : base(itemView)
 {
     Name           = itemView.FindViewById <TextView>(Resource.Id.item_name_text);
     Icon           = itemView.FindViewById <ImageView>(Resource.Id.item_icon);
     ExpandCollapse = itemView.FindViewById <ImageButton>(Resource.Id.item_expand_button);
     Info           = itemView.FindViewById <TextView>(Resource.Id.item_info);
 }
Ejemplo n.º 3
0
            public void TimeAlert(Android.Views.LayoutInflater inflater, AlertDialog.Builder builder)
            {
                Android.Views.View secondView = inflater.Inflate(Resource.Layout.TimePickerLayout, null);
                builder.SetView(secondView);
                builder.SetCancelable(false);

                /*TextView title = secondView.FindViewById<TextView>(Resource.Id.Login);
                 * title.Text = Title;
                 *
                 * TextView body = secondView.FindViewById<TextView>(Resource.Id.pincodeText);
                 * body.Text = Body;
                 * body.MovementMethod = new Android.Text.Method.ScrollingMovementMethod(); */

                Android.Widget.Button btnPositive = secondView.FindViewById <Android.Widget.Button>(Resource.Id.btnLoginLL);
                Android.Widget.Button btnNegative = secondView.FindViewById <Android.Widget.Button>(Resource.Id.btnClearLL);
                var tp = secondView.FindViewById <Android.Widget.TimePicker>(Resource.Id.timePicker1);

                tp.SetIs24HourView((Java.Lang.Boolean)true);
                //Positive button feedback
                btnPositive.Text   = Buttons.Last().Text;
                btnPositive.Click += delegate
                {
                    var car = (Xamarin.Forms.TimePicker)Content;
                    var ts  = new TimeSpan(tp.Hour, tp.Minute, 0);
                    car.Time = ts;
                    CommandsForButtons(Buttons.Last());
                };

                //Negative button feedback
                btnNegative.Text   = Buttons.First().Text;
                btnNegative.Click += delegate
                {
                    CommandsForButtons(Buttons.First());
                };
            }
Ejemplo n.º 4
0
            public void NeutralAlert(Android.Views.LayoutInflater inflater, AlertDialog.Builder builder)
            {
                Android.Views.View secondView = inflater.Inflate(Resource.Layout.DefaultAlertLayout, null);
                builder.SetView(secondView);

                TextView title = secondView.FindViewById <TextView>(Resource.Id.Login);

                title.Text = Title;

                TextView body = secondView.FindViewById <TextView>(Resource.Id.pincodeText);

                body.Text           = Body;
                body.MovementMethod = new Android.Text.Method.ScrollingMovementMethod();

                Buttons = new List <AlertButton> {
                    new AlertButton {
                        Text        = "Oké",
                        IsPreferred = true,
                        Action      = () => false
                    }
                };
                Android.Widget.Button btnNeutral = secondView.FindViewById <Android.Widget.Button>(Resource.Id.btnNeutral);
                btnNeutral.Text   = Buttons.First().Text;
                btnNeutral.Click += delegate
                {
                    CommandsForButtons(Buttons.First());
                };
            }
Ejemplo n.º 5
0
            public void YesOrNoAlert(Android.Views.LayoutInflater inflater, AlertDialog.Builder builder)
            {
                Android.Views.View secondView = inflater.Inflate(Resource.Layout.YesOrNoLayout, null);
                builder.SetView(secondView);

                TextView title = secondView.FindViewById <TextView>(Resource.Id.Login);

                title.Text = Title;

                TextView body = secondView.FindViewById <TextView>(Resource.Id.pincodeText);

                body.Text           = Body;
                body.MovementMethod = new Android.Text.Method.ScrollingMovementMethod();

                Android.Widget.Button btnPositive = secondView.FindViewById <Android.Widget.Button>(Resource.Id.btnLoginLL);
                Android.Widget.Button btnNegative = secondView.FindViewById <Android.Widget.Button>(Resource.Id.btnClearLL);


                //Positive button feedback
                btnPositive.Text   = Buttons.Last().Text;
                btnPositive.Click += delegate
                {
                    CommandsForButtons(Buttons.Last());
                };

                //Negative button feedback
                btnNegative.Text   = Buttons.First().Text;
                btnNegative.Click += delegate
                {
                    CommandsForButtons(Buttons.First());
                };
            }
Ejemplo n.º 6
0
        public void Show(string message = null, string colorMesage = null, string image = null, string backgroundColor = null)
        {
            AlertDialog.Builder dialog = new AlertDialog.Builder(CrossCurrentActivity.Current.Activity);
            var inflater = Android.App.Application.Context.GetSystemService(Android.Content.Context.LayoutInflaterService) as Android.Views.LayoutInflater;

            Android.Views.View view = inflater.Inflate(Resource.Layout.CustomDialog, null);
            var colorBackground     = (!string.IsNullOrWhiteSpace(backgroundColor)) ? Android.Graphics.Color.ParseColor(backgroundColor) : Android.Graphics.Color.White;

            view.SetBackgroundColor(colorBackground);
            var textMessage = view.FindViewById <TextView>(Resource.Id.text_dialog);

            if (textMessage != null)
            {
                var colorText = (!string.IsNullOrWhiteSpace(colorMesage)) ? Android.Graphics.Color.ParseColor(colorMesage) : Android.Graphics.Color.Black;
                textMessage.Text = (!string.IsNullOrWhiteSpace(message)) ? message : string.Empty;
                textMessage.SetTextColor(colorText);
            }
            var imageView = view.FindViewById <LottieAnimationView>(Resource.Id.animation_view);

            if (imageView != null)
            {
                int restId = CrossCurrentActivity.Current.Activity.Resources.GetIdentifier(image, "drawable", CrossCurrentActivity.Current.Activity.PackageName);
                imageView.SetAnimation(restId);
            }
            dialog.SetView(view);
            dialog.SetCancelable(false);
            Adialog = dialog.Create();
            Adialog.Show();
        }
Ejemplo n.º 7
0
        public Android.Views.View GetInfoContents(Marker marker)
        {
            Android.Views.LayoutInflater inflater = Android.App.Application.Context.GetSystemService(Context.LayoutInflaterService) as Android.Views.LayoutInflater;
            if (inflater == null)
            {
                return(null);
            }

            CustomPin customPin = GetCustomPin(marker);

            if (customPin == null)
            {
                throw new Exception("Custom pin not found");
            }

            Android.Views.View infoContents = inflater.Inflate(Resource.Layout.MapInfoWindow, null);
            TextView           infoTitle    = infoContents.FindViewById <TextView>(Resource.Id.InfoWindowTitle);
            TextView           infoSubtitle = infoContents.FindViewById <TextView>(Resource.Id.InfoWindowSubtitle);

            if (infoTitle != null)
            {
                infoTitle.Text = marker.Title;
            }
            if (infoSubtitle != null)
            {
                infoSubtitle.Text = marker.Snippet;
            }

            return(infoContents);
        }
 public ReceiveImageViewHolder(Android.Views.View itemView, Action <RecyclerClickEventArgs> ClickListener, Action <RecyclerClickEventArgs> LongClickListener) : base(itemView, ClickListener, LongClickListener)
 {
     imgContent           = itemView.FindViewById <ImageViewAsync>(Resource.Id.txtContent);
     txtDate              = itemView.FindViewById <TextView>(Resource.Id.txtTimeStamp);
     pgLoading            = itemView.FindViewById <ProgressBar>(Resource.Id.pgLoading);
     imgFavoriteIndicator = itemView.FindViewById <ImageView>(Resource.Id.imgFavoriteIndicator);
 }
Ejemplo n.º 9
0
        public override View NewView(Context context, Cursor cursor, ViewGroup parent)
        {
            View convertView = mInflater.Inflate(Resource.Layout.ImageSelect_PhotoPickListItem, parent, false);

            viewHolder            = new ViewHolder();
            viewHolder.textView   = (TextView)convertView.FindViewById(Resource.Id.foldName);
            viewHolder.photoCount = (TextView)convertView.FindViewById(Resource.Id.photoCount);
            convertView.Tag       = viewHolder;
            return(convertView);
        }
Ejemplo n.º 10
0
 public SendImageViewHolder(Android.Views.View itemView, Action <RecyclerClickEventArgs> ClickListener, Action <RecyclerClickEventArgs> LongClickListener, Action <RecyclerClickEventArgs> CancelClickListener) : base(itemView, ClickListener, LongClickListener)
 {
     imgContent          = itemView.FindViewById <ImageViewAsync>(Resource.Id.txtContent);
     txtDate             = itemView.FindViewById <TextView>(Resource.Id.txtTimeStamp);
     containerCancel     = itemView.FindViewById <FrameLayout>(Resource.Id.containerCancel);
     btSendCancel        = itemView.FindViewById <ImageButton>(Resource.Id.btSendCancel);
     btSendCancel.Click += (sender, e) => CancelClickListener(new RecyclerClickEventArgs {
         View = itemView, Position = AdapterPosition
     });
 }
Ejemplo n.º 11
0
        public ResultQuestViewHolder(Android.Views.View itemView) : base(itemView)
        {
            Title  = itemView.FindViewById <TextView>(Resource.Id.resultQuestTitle);
            Status = itemView.FindViewById <TextView>(Resource.Id.resultQuestStatus);

            Description    = ExpandDetails.FindViewById <TextView>(Resource.Id.resultQuestDescription);
            RestartButton  = ExpandDetails.FindViewById <Button>(Resource.Id.resultQuestRestart);
            DeleteButton   = ExpandDetails.FindViewById <Button>(Resource.Id.resultQuestDelete);
            ChildrenButton = ExpandDetails.FindViewById <Button>(Resource.Id.resultQuestChildrenButton);
        }
Ejemplo n.º 12
0
        public ClientListViewHolder(Android.Views.View itemView, IMvxAndroidBindingContext context)
            : base(itemView, context)
        {
            _tvClientNum  = itemView.FindViewById <TextView>(Resource.Id.text_clientnum);
            _tvClientName = itemView.FindViewById <TextView>(Resource.Id.text_clientname);


            this.DelayBind(() =>
            {
                var set = this.CreateBindingSet <ClientListViewHolder, ClientListModel>();
                set.Bind(_tvClientNum).To(x => x.ClientNumber);
                set.Bind(_tvClientName).To(x => x.ClientName);
                set.Apply();
            });
        }
Ejemplo n.º 13
0
        public AvailableQuestViewHolder(Android.Views.View itemView) : base(itemView)
        {
            IsImportantButton = itemView.FindViewById <ImageView>(Resource.Id.availableImportantButtonId);
            Title             = itemView.FindViewById <TextView>(Resource.Id.availableQuestTitle);
            StartTime         = itemView.FindViewById <TextView>(Resource.Id.availableQuestStartTime);
            Deadline          = itemView.FindViewById <TextView>(Resource.Id.availableQuestDeadline);

            Description    = ExpandDetails.FindViewById <TextView>(Resource.Id.availableQuestDescription);
            ChildrenButton = ExpandDetails.FindViewById <Button>(Resource.Id.availableQuestChildrenButton);
            StartButton    = ExpandDetails.FindViewById <Button>(Resource.Id.availabletQuestStart);
            EditButton     = ExpandDetails.FindViewById <Button>(Resource.Id.availableQuestEdit);
            DeleteButton   = ExpandDetails.FindViewById <Button>(Resource.Id.availableQuestDelete);

            IsImportantButton.Click += IsImportantButton_Click;
        }
Ejemplo n.º 14
0
        public ActiveQuestViewHolder(Android.Views.View view) : base(view)
        {
            Title    = view.FindViewById <TextView>(Resource.Id.questTitle);
            TimeLeft = view.FindViewById <TextView>(Resource.Id.questTimeLeft);
            Progress = view.FindViewById <ProgressBar>(Resource.Id.questProgress);
            Progress.ProgressDrawable.SetColorFilter(Color.Green, PorterDuff.Mode.SrcIn);

            Description    = ExpandDetails.FindViewById <TextView>(Resource.Id.questDescription);
            ChildrenButton = ExpandDetails.FindViewById <Button>(Resource.Id.questChildrenButton);

            DoneButton   = ExpandDetails.FindViewById <Button>(Resource.Id.questDone);
            FailButton   = ExpandDetails.FindViewById <Button>(Resource.Id.questFailed);
            StartButton  = ExpandDetails.FindViewById <Button>(Resource.Id.questStart);
            DeleteButton = ExpandDetails.FindViewById <Button>(Resource.Id.questDelete);
            CancelButton = ExpandDetails.FindViewById <Button>(Resource.Id.questCancel);
        }
Ejemplo n.º 15
0
        public static TCell Create <TCell>(AView view, BaseCellView cell, int id) where TCell : BaseTextView
        {
            TCell result = view.FindViewById <TCell>(id) ?? throw new NullReferenceException(nameof(id));

            result.SetCell(cell);
            return(result);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.firsttimemain);

            var builder = new Android.Support.V7.App.AlertDialog.Builder(this);

            Android.Views.LayoutInflater layoutInflater = this.LayoutInflater;

            Android.Views.View view = layoutInflater.Inflate(Resource.Layout.numberofsignatories, null, false);

            builder.SetView(view);

            ImageButton imp = view.FindViewById <ImageButton>(Resource.Id.plusButton);
            ImageButton imm = view.FindViewById <ImageButton>(Resource.Id.minusButton);

            imp.Click += Imp_Click;
            imm.Click += Imm_Click;

            numberTv = view.FindViewById <TextInputEditText>(Resource.Id.numberEdit);

            numberTv.Text = System.Convert.ToString(minNumber);

            numberTv.AfterTextChanged  += Tv_AfterTextChanged;
            numberTv.BeforeTextChanged += NumberTv_BeforeTextChanged;

            //numberPicker.Value = SignatureRecoveryActivity.numberOfSignatories
            SignatureRecoveryActivity.CurrentSignatory = 1;


            builder.SetTitle("Number Of Signatories");

            builder.SetPositiveButton(Resource.String.next, (senderAlert, args) =>
            {
                SignatureRecoveryActivity.NumberOfSignatories = System.Convert.ToInt16(numberTv.Text);
                StartActivity(new Intent(Application.Context, typeof(SignatureRecoveryActivity)));
            });

            builder.SetNegativeButton(Resource.String.cancel, (senderAlert, args) => { Finish(); });

            builder.SetNeutralButton(Resource.String.prev, (senderAlert, args) =>
            {
                StartActivity(new Intent(Application.Context, typeof(PaperBackRecoveryActivity)));
            });

            builder.Show();
        }
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            var verticalInfiniteCycleViewPager = view.FindViewById <VerticalInfiniteCycleViewPager>(Resource.Id.vicvp);

            verticalInfiniteCycleViewPager.Adapter = new VerticalPagerAdapter(Context, null);
        }
Ejemplo n.º 18
0
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            var recyclerView = view.FindViewById <MvxRecyclerView>(Resource.Id.app_filters_filters_recyclerView);

            SetupRecyclerView(recyclerView);
        }
        protected virtual void BindContols(Android.Views.View view)
        {
            var set = this.CreateBindingSet <FullOrderFragment, IFullOrderViewModel>();

            BindDeliveryPrice(view.FindViewById <TextView>(Resource.Id.app_basket_full_order_deliveryLayout_price), set);

            set.Apply();
        }
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            var horizontalInfiniteCycleViewPager = view.FindViewById <HorizontalInfiniteCycleViewPager>(Resource.Id.hicvp);

            horizontalInfiniteCycleViewPager.Adapter = new HorizontalPagerAdapter(Context, false);
        }
Ejemplo n.º 21
0
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            EmojiconRecentsManager.Context = view.Context;
            mAdapter = new EmojiAdapter(view.Context, EmojiconRecentsManager.Recents);
            GridView gridView = (GridView)view.FindViewById(Resource.Id.Emoji_GridView);

            gridView.Adapter    = mAdapter;
            gridView.ItemClick += OnItemClick;
        }
Ejemplo n.º 22
0
        public override Android.Views.View GetView(int position, Android.Views.View convertView, ViewGroup parent)
        {
            Android.Views.View view = convertView;
            convertView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.celllayout, null);
            TextView text = convertView.FindViewById <TextView>(Resource.Id.textview1);

            text.Text = mList[position];

            return(convertView);
        }
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            _recyclerView = view.FindViewById <MvxRecyclerView>(Resource.Id.app_basket_full_order_recyclerView);
            SetupRecyclerView(view, _recyclerView);

            BindContols(view);

            ViewModel.DeliveryViewModel.PropertyChanged += ViewModel_PropertyChanged;
        }
        public override Android.Views.View GetView(int position, Android.Views.View convertView, Android.Views.ViewGroup parent)
        {
            Android.Views.View view = convertView;

            if (view == null)
            {
                view = _context.LayoutInflater.Inflate(Resource.Layout.DeviceRow, null);
            }

            view.FindViewById <TextView> (Resource.Id.deviceName).Text = _deviceList [position].DeviceName;
            CheckBox deviceCheckbox = view.FindViewById <CheckBox> (Resource.Id.deviceChecked);

            deviceCheckbox.Checked = _deviceList [position].IsSelected;
            deviceCheckbox.Tag     = _deviceList [position].DeviceName;

            deviceCheckbox.Click += delegate(object sender, EventArgs args){
                CheckedChange(sender, args);
            };


            return(view);
        }
Ejemplo n.º 25
0
        public Android.Views.View GetInfoContents(Marker marker)
        {
            var inflater = Android.App.Application.Context.GetSystemService(Context.LayoutInflaterService) as Android.Views.LayoutInflater;

            if (inflater != null)
            {
                var eventPin = GetEventPin(marker);
                if (eventPin == null)
                {
                    throw new Exception("Event pin not found");
                }

                Android.Views.View view = inflater.Inflate(Resource.Layout.MapInfoWindow, null);

                var infoTitle    = view.FindViewById <TextView>(Resource.Id.EventName);
                var infoSubtitle = view.FindViewById <TextView>(Resource.Id.EventDate);
                var infoAddress  = view.FindViewById <TextView>(Resource.Id.EventAddress);

                if (infoTitle != null)
                {
                    infoTitle.Text = eventPin.Name;
                }

                if (infoSubtitle != null)
                {
                    infoSubtitle.Text = eventPin.EventDate.ToString("MMMM dd, yyyy H:mm tt");
                }

                if (infoAddress != null)
                {
                    infoAddress.Text = eventPin.Address;
                }

                return(view);
            }

            return(null);
        }
        public override void OnViewCreated(Android.Views.View view, Android.OS.Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            lstSessions         = view.FindViewById <ListView>(Resource.Id.lstSessions);
            lstSessions.Adapter = new ArrayAdapter(
                Context,
                Resource.Layout.fragment_sessions_item,
                Resource.Id.txtTitle,
                items.Select(x => x.Title).ToArray()
                );

            lstSessions.ItemClick += HandleSessionSelected;
        }
Ejemplo n.º 27
0
            public void AuthenticationAlert(Android.Views.View view, AlertDialog.Builder builder, Android.Views.LayoutInflater inflater,
                                            List <AlertButton> buttons)
            {
                builder.SetView(view);
                EditText pincode = view.FindViewById <EditText>(Resource.Id.pincodeEditText);

                Android.Widget.Button btnPositive = view.FindViewById <Android.Widget.Button>(Resource.Id.btnLoginLL);
                Android.Widget.Button btnNegative = view.FindViewById <Android.Widget.Button>(Resource.Id.btnClearLL);

                if (buttons == null || buttons.Count == 0)
                {
                    NeutralAlert(inflater, builder);
                }


                //Positive button feedback
                btnPositive.Text   = Buttons.Last().Text;
                btnPositive.Click += delegate
                {
                    var test = (StackLayout)Content;

                    if (test != null)
                    {
                        var car = (Entry)test.Children[0];
                        car.Text = pincode.Text;
                    }

                    CommandsForButtons(Buttons.Last());
                };

                //Negative button feedback
                btnNegative.Text   = Buttons.First().Text;
                btnNegative.Click += delegate
                {
                    CommandsForButtons(Buttons.First());
                };
            }
Ejemplo n.º 28
0
        ///<inehritdoc/>
        protected override RecyclerView HandleRecyclerView(Android.Views.View fragmentView)
        {
            RecyclerView recView = fragmentView.FindViewById <RecyclerView>(Resource.Id.questRecyclerViewRefId);

            recView.SetLayoutManager(new LinearLayoutManager(this.Context));
            recView.SetAdapter(QuestsAdapter = new AvailableQuestsAdapter(this.Activity, ViewModel, this));

            DividerItemDecoration decor = new DividerItemDecoration(this.Context, DividerItemDecoration.Vertical);
            Drawable dr = ResourcesCompat.GetDrawable(this.Resources,
                                                      Resource.Drawable.questItemDivider, null);

            decor.SetDrawable(dr);
            recView.AddItemDecoration(decor);
            return(recView);
        }
 public override void OnBackPressed()
 {
     AlertDialog.Builder alert = new AlertDialog.Builder(this);
     alert.SetTitle("Please confirm whether to close the application or not.");
     alert.SetPositiveButton("Yes", async(senderAlert, args) =>
     {
         await SessionInfoViewModel.GetLogoutInfo();
         if (SessionInfoViewModel.result == 1)
         {
             LocalStorage.SaveSet("login_session_id", null);
             Android.OS.Process.KillProcess(Android.OS.Process.MyPid());
         }
         else
         {
             var linearLayout           = FindViewById <LinearLayout>(Resource.Id.session_info_view);
             Snackbar snackbar          = Snackbar.Make(linearLayout, "Log out error!", Snackbar.LengthLong);
             Android.Views.View objView = snackbar.View;
             TextView txtAction         = objView.FindViewById <TextView>(Resource.Id.snackbar_action);
             txtAction.SetTextSize(Android.Util.ComplexUnitType.Dip, 18);
             txtAction.SetTextColor(Android.Graphics.Color.White);
             objView.SetBackgroundColor(Color.Red);
             //set message text color
             TextView txtMessage = objView.FindViewById <TextView>(Resource.Id.snackbar_text);
             txtMessage.SetTextColor(Android.Graphics.Color.White);
             txtMessage.SetTextSize(Android.Util.ComplexUnitType.Dip, 18);
             snackbar.Show();
         }
     });
     alert.SetNegativeButton("No", (senderAlert, args) =>
     {
     });
     RunOnUiThread(() =>
     {
         alert.Show();
     });
 }
Ejemplo n.º 30
0
 public static void CreateControls <T> (this T obj, DroidView view)
 {
     foreach (var prop in typeof(T).GetProperties(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public))
     {
         var pn = prop.Name;
         if (prop.PropertyType.IsSubclassOf(typeof(DroidView)))
         {
             try
             {
                 var resourceId = ControlUtil.GetResourceId(pn);
                 var ctrl       = view.FindViewById(resourceId);
                 prop.SetValue(obj, ctrl);
             }
             catch {}
         }
     }
 }