示例#1
0
		public BindableExpandableListView (Context context, IAttributeSet attrs)
			: base (context, attrs)
		{
            var expandableAdapter = new BindableExpandableListAdapter(context);
			
            var groupTemplateId = MvxAttributeHelpers.ReadAttributeValue (context, attrs,
				                      MvxAndroidBindingResource.Instance
				.ListViewStylableGroupId,
				                      AndroidBindingResource.Instance
				.BindableListGroupItemTemplateId);

			var itemTemplateId = MvxAttributeHelpers.ReadListItemTemplateId (context, attrs);
            
            expandableAdapter.GroupTemplateId = groupTemplateId;
            expandableAdapter.ItemTemplateId = itemTemplateId;

            SetAdapter(expandableAdapter);

            InitHeaders(context, attrs);
            InitFooters(context, attrs);            
		}
示例#2
0
        public BindableExpandableListView(Context context, IAttributeSet attrs)
            : base(context, attrs)
        {
            var expandableAdapter = new BindableExpandableListAdapter(context);

            var groupTemplateId = MvxAttributeHelpers.ReadAttributeValue(context, attrs,
                                                                         MvxAndroidBindingResource.Instance
                                                                         .ListViewStylableGroupId,
                                                                         AndroidBindingResource.Instance
                                                                         .BindableListGroupItemTemplateId);

            var itemTemplateId = MvxAttributeHelpers.ReadListItemTemplateId(context, attrs);

            expandableAdapter.GroupTemplateId = groupTemplateId;
            expandableAdapter.ItemTemplateId  = itemTemplateId;

            SetAdapter(expandableAdapter);

            InitHeaders(context, attrs);
            InitFooters(context, attrs);
        }