Exemplo n.º 1
0
 public MyCustomExpandableAdapter(Context context,
     IMvxAndroidBindingContext bindingContext, MainViewModel viewModel)
     : base(context, bindingContext)
 {
     _viewModel = viewModel;
     _clients = viewModel.Clients;
 }
Exemplo n.º 2
0
 public MvxPopupWindow(Context context, IAttributeSet attrs)
     : base(context, attrs)
 {
     templateId = MvxAttributeHelpers.ReadTemplateId(context, attrs);
     if (!(context is IMvxLayoutInflaterHolder))
         throw Mvx.Exception("The owning Context for a MvxPopupWindow must implement IMvxLayoutInflaterHolder");
     bindingContext = new MvxAndroidBindingContext(context, (IMvxLayoutInflaterHolder)context);
 }
 public MvxBindablePagerAdapter(Context context, IMvxAndroidBindingContext bindingContext)
 {
     _context = context;
     _bindingContext = bindingContext;
     if (_bindingContext == null)
         throw new MvxException(
             "MvxBindableListView can only be used within a Context which supports IMvxBindingActivity");
     SimpleViewLayoutId = Android.Resource.Layout.SimpleListItem1;
 }
 public View BuildView(Context context, IMvxAndroidBindingContext androidBindingContext, object source)
 {
     var view = new GeneralListItemView(
         context,
         androidBindingContext.LayoutInflaterHolder,
         this.Bindings,
         source,
         this.LayoutName);
     return view;
 }
 public MvxAndroidUserInterfaceBuilder(IMvxAndroidBindingContext context, object dataSource,
                                     IBuilderRegistry builderRegistry,
                                     string bindTag = MvxAutoViewConstants.MvxBindTag,
                                     string platformName = DroidConstants.PlatformName)
     : base(builderRegistry, platformName)
 {
     _propertyBuilder = new PropertyBuilder();
     var setter = new MvxBindingPropertySetter(context, dataSource);
     _propertyBuilder.CustomPropertySetters[bindTag] = setter;
 }
 public MvxAdapter(Context context, IMvxAndroidBindingContext bindingContext)
 {
     _context = context;
     _bindingContext = bindingContext;
     if (_bindingContext == null)
     {
         throw new MvxException(
             "bindingContext is null during MvxAdapter creation - Adapter's should only be created when a specific binding context has been placed on the stack");
     }
     SimpleViewLayoutId = Resource.Layout.SimpleListItem1;
 }
        public MvxFrameControl(int templateId, Context context, IAttributeSet attrs)
            : base(context, attrs)
        {
            _templateId = templateId;

            if (!(context is IMvxLayoutInflaterHolder))
            {
                throw Mvx.Exception("The owning Context for a MvxFrameControl must implement LayoutInflater");
            }

            _bindingContext = new MvxAndroidBindingContext(context, (IMvxLayoutInflaterHolder)context);
            this.DelayBind(() =>
                {
                    if (Content == null && _templateId != 0)
                    {
                        Mvx.Trace("DataContext is {0}", DataContext == null ? "Null" : DataContext.ToString());
                        Content = _bindingContext.BindingInflate(_templateId, this);
                    }
                });
        }
Exemplo n.º 8
0
 protected MvxBaseObjectAdapter(IMvxAndroidBindingContext bindingContext)
 {
     BindingContext = bindingContext;
 }
 public MvxAdvancedRecyclerViewExpandableAdapterController(Android.Content.Context context, Android.Util.IAttributeSet attrs, RecyclerView recyclerView, IMvxAndroidBindingContext bindingContext)
     : base(context, attrs, recyclerView, bindingContext)
 {
 }
 public MedicationSummaryAdapter(Context context, IMvxAndroidBindingContext bindingContext) : base(context, bindingContext)
 {
 }
Exemplo n.º 11
0
 public Meeting1Adapter(IMvxAndroidBindingContext bindingContext, Activity activity, MeetingsMain meetingsMain)
 {
     this.bindingCtxt = bindingContext;
     this.activity    = activity;
     this.meetingMain = meetingsMain;
 }
Exemplo n.º 12
0
 public RatingRecyclerAdapter(IMvxAndroidBindingContext bindingContext) : base(bindingContext)
 {
 }
 protected MvxBaseObjectAdapter(PresenterSelector presenterSelector, IMvxAndroidBindingContext bindingContext) : base(presenterSelector)
 {
     BindingContext = bindingContext;
 }
 protected override View InflateViewForHolder(ViewGroup parent, int viewType, IMvxAndroidBindingContext bindingContext)
 {
     var templateId = (viewType == HeaderTemplate ? Resource.Layout.DisplayIncidentHeader : Resource.Layout.DisplayIncidentDetail);
     return bindingContext.BindingInflate(templateId, parent, false);
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SentListCustomAdapter"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="bindingContext">The binding context.</param>
 /// <param name="view">The view.</param>
 public SentListCustomAdapter(Context context, IMvxAndroidBindingContext bindingContext, SentListView view)
     : base(context, bindingContext)
 {
     _context = context;
     _view    = view;
 }
Exemplo n.º 16
0
        public SegmentItemViewHolder(View itemView, IMvxAndroidBindingContext context) : base(itemView, context)
        {
            InitComponents(itemView);

            BindComponents();
        }
Exemplo n.º 17
0
            public MyViewHolder(View itemView, IMvxAndroidBindingContext context) : base(itemView, context)

            {
                name = itemView.FindViewById <TextView>(Resource.Id.menutitle);
            }
Exemplo n.º 18
0
 public ContactsAdapter(IMvxAndroidBindingContext bindingContext)
     : base(bindingContext)
 {
 }
Exemplo n.º 19
0
 public MenuListAdapter(IMvxAndroidBindingContext bindingContext)
     : base(bindingContext)
 {
 }
Exemplo n.º 20
0
 public virtual MvxBindingInfoViewHolder GetInfoWindowViewHolder(View view, IMvxAndroidBindingContext bindingContext)
 => null;
Exemplo n.º 21
0
 public MvxBindingInfoWindowAdapter(IMvxAndroidBindingContext bindingContext, Context context)
 {
     _bindingContext = bindingContext;
     _context        = context;
 }
Exemplo n.º 22
0
 public MvxExpandableListAdapter(Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
 }
Exemplo n.º 23
0
 public TransactionsAdapter(Context context, IMvxAndroidBindingContext bindingContext, MvxListView tableView, LinearLayout bottomBackgroundView) : base(context, bindingContext)
 {
     this.context              = context;
     this.tableView            = tableView;
     this.bottomBackgroundView = bottomBackgroundView;
 }
Exemplo n.º 24
0
			public TreeListViewAdapter(Context context, IMvxAndroidBindingContext BindingContext)
				: base(context, BindingContext)
			{

			}
 public QuickRecyclerViewAdapter(IMvxAndroidBindingContext bindingContext)
 {
     BindingContext = bindingContext ?? MvxAndroidBindingContextHelpers.Current();
 }
Exemplo n.º 26
0
 public SessionListAdapter(Context context, IMvxAndroidBindingContext bindingContext, ICommand itemClickCommand)
     : base(context, bindingContext)
 {
     _itemClickCommand = itemClickCommand;
 }
Exemplo n.º 27
0
        //public MvvmCross.Droid.Support.V7.AppCompat.Widget.MvxAppCompatImageView UserPhoto { get; set; }
        //public string UserPhotoUrl { get; set; }
        #endregion

        public LeaderboardAdapter(Context context, IMvxAndroidBindingContext bindingContext, MvxListView tableView) : base(context, bindingContext)
        {
            this.context   = context;
            this.tableView = tableView;
            listItems      = new List <LocalFriendModel>();
        }
 public MvxBindingPropertySetter(IMvxAndroidBindingContext androidBindingContext, object source)
 {
     _androidBindingContext = androidBindingContext;
     _source = source;
 }
 public CryptoReminderAdapter(IMvxAndroidBindingContext bindingContext, CryptoCurrencyListViewModel vm, Activity activity)
     : base(bindingContext)
 {
     _vm       = vm;
     _activity = activity;
 }
 public ObjectListAdapter(Android.Content.Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
 }
        protected virtual View InflateViewForHolder(ViewGroup parent, int viewType, IMvxAndroidBindingContext bindingContext)
        {
            var layoutId = ItemTemplateSelector.GetItemLayoutId(viewType);

            return(bindingContext.BindingInflate(layoutId, parent, false));
        }
Exemplo n.º 32
0
 public MvxRecyclerAdapter(IMvxAndroidBindingContext bindingContext)
 {
     BindingContext = bindingContext ?? MvxAndroidBindingContextHelpers.Current();
 }
 public MvxRecyclerAdapter(IMvxAndroidBindingContext bindingContext)
 {
     _bindingContext = bindingContext;
 }
 protected MvxBaseListItemView(Context context, IMvxLayoutInflater layoutInflater, object dataContext)
     : base(context)
 {
     _bindingContext = new MvxAndroidBindingContext(context, layoutInflater, dataContext);
 }
Exemplo n.º 35
0
 public HomeRecyclerHolder(View itemView, IMvxAndroidBindingContext context) : base(itemView, context)
 {
     SetupBinding();
 }
Exemplo n.º 36
0
 public TechnologyCategoriesAdapter(IMvxAndroidBindingContext bindingContext) : base(bindingContext)
 {
 }
 protected virtual View InflateViewForHolder(ViewGroup parent, int viewType, IMvxAndroidBindingContext bindingContext)
 {
     return bindingContext.BindingInflate(this.ItemTemplateId, parent, false);
 }
Exemplo n.º 38
0
 protected MvxBaseObjectAdapter(PresenterSelector presenterSelector, IMvxAndroidBindingContext bindingContext)
     : base(presenterSelector)
 {
     BindingContext = bindingContext;
 }
 public MvxRecyclerAdapter(IMvxAndroidBindingContext bindingContext)
 {
     this._bindingContext = bindingContext;
 }
Exemplo n.º 40
0
 public ListAdapter(Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
 }
        public BindableExpandableListAdapter(Context context, IMvxAndroidBindingContext bindingContext)
            : base(context,bindingContext)
        {

        }
 protected MvxBaseObjectAdapter(IMvxAndroidBindingContext bindingContext)
 {
     BindingContext = bindingContext;
 }
 protected MvxBaseListItemView(Context context, IMvxLayoutInflater layoutInflater, object dataContext)
     : base(context)
 {
     _bindingContext = new MvxAndroidBindingContext(context, layoutInflater, dataContext);
 }
 protected MvxBaseObjectAdapter(IMvxAndroidBindingContext bindingContext, IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
 {
     BindingContext = bindingContext;
 }
 public DisplayIncidentAdapter(IMvxAndroidBindingContext bindingContext) : base(bindingContext)
 {
 }
 protected virtual View InflateViewForHolder(ViewGroup parent, int viewType, IMvxAndroidBindingContext bindingContext)
 {
     var layoutId = ItemTemplateSelector.GetItemLayoutId(viewType);
     return bindingContext.BindingInflate(layoutId, parent, false);
 }
Exemplo n.º 47
0
 public MyCustomRecyclerAdapter(IMvxAndroidBindingContext bindingContext) : base(bindingContext)
 {
 }
Exemplo n.º 48
0
			public GroupedListAdapter(Context context, IMvxAndroidBindingContext BindingContext)
				: base(context, BindingContext)
			{

			}
Exemplo n.º 49
0
 public HostViewAdapter(Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
 }
Exemplo n.º 50
0
 public SelectTimePagerAdapter(IMvxBindingContext bindingContext)
 {
     this.bindingContext = (IMvxAndroidBindingContext)bindingContext;
 }
Exemplo n.º 51
0
 public MyMvxAdapter(Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
     _context = context;
     _bindingContext = bindingContext;
 }
 public MvxRecyclerViewHolder(View itemView, IMvxAndroidBindingContext context)
     : base(itemView)
 {
     this._bindingContext = context;
 }
 public MainRecyclerViewSuggestionsViewHolder(View itemView, IMvxAndroidBindingContext context)
     : base(itemView, context)
 {
 }
Exemplo n.º 54
0
 public MyAdapter(Context context, IMvxAndroidBindingContext bindingContext)
     : base(context, bindingContext)
 {
 }
Exemplo n.º 55
0
        protected override View InflateViewForHolder(ViewGroup parent, int viewType, IMvxAndroidBindingContext bindingContext)
        {
            var view = base.InflateViewForHolder(parent, viewType, bindingContext);

            return(view);
        }