public MvxBindableLinearLayout(Context context, IAttributeSet attrs)
     : base(context, attrs)
 {
     var itemTemplateId = MvxBindableListViewHelpers.ReadTemplatePath(context, attrs);
     Adapter = new MvxBindableListAdapterWithChangedEvent(context);
     Adapter.ItemTemplateId = itemTemplateId;
     Adapter.DataSetChanged += AdapterOnDataSetChanged;
 }
 public MvxBindableLinearLayout(Context context, IAttributeSet attrs)
     : base(context, attrs)
 {
     var itemTemplateId = MvxBindableListViewHelpers.ReadAttributeValue(context, attrs, MvxAndroidBindingResource.Instance.BindableListViewStylableGroupId, MvxAndroidBindingResource.Instance.BindableListItemTemplateId);
     Adapter = new MvxBindableListAdapterWithChangedEvent(context);
     Adapter.ItemTemplateId = itemTemplateId;
     Adapter.DataSetChanged += AdapterOnDataSetChanged;
     this.ChildViewRemoved += OnChildViewRemoved;
 }
Beispiel #3
0
        public MvxBindableLinearLayout(Context context, IAttributeSet attrs)
            : base(context, attrs)
        {
            var itemTemplateId = MvxBindableListViewHelpers.ReadTemplatePath(context, attrs);

            Adapter = new MvxBindableListAdapterWithChangedEvent(context);
            Adapter.ItemTemplateId  = itemTemplateId;
            Adapter.DataSetChanged += AdapterOnDataSetChanged;
        }
        public MvxBindableLinearLayout(Context context, IAttributeSet attrs)
            : base(context, attrs)
        {
            var itemTemplateId = MvxBindableListViewHelpers.ReadAttributeValue(context, attrs, MvxAndroidBindingResource.Instance.BindableListViewStylableGroupId, MvxAndroidBindingResource.Instance.BindableListItemTemplateId);

            Adapter = new MvxBindableListAdapterWithChangedEvent(context);
            Adapter.ItemTemplateId  = itemTemplateId;
            Adapter.DataSetChanged += AdapterOnDataSetChanged;
            this.ChildViewRemoved  += OnChildViewRemoved;
        }