Exemplo n.º 1
0
        public void BindDataToView(SettingsShared.SettingsModel model)
        {
            Reset();

            Label.Text      = model.Title;
            RightLabel.Text = model.Value;
        }
Exemplo n.º 2
0
        public void BindDataToView(Context context, int position, SettingsShared.SettingsModel item)
        {
            LeftTextView.Text  = item.Title;
            RightTextView.Text = item.Value;

            ItemView.LayoutParameters = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 150);

            if (ItemView.HasOnClickListeners)
            {
                return;
            }
            ItemView.Click += (sender, e) =>
            {
                var intent = new Intent(SettingsShared.ItemClickedBroadcastReceiverKey);
                intent.PutExtra(SettingsShared.ItemClickedBroadcastReceiverKeyPosition, position);
                context.SendBroadcast(intent);
            };
        }