public MvxBindableListView(Context context, IAttributeSet attrs, MvxBindableListAdapter adapter) : base(context, attrs) { var itemTemplateId = MvxBindableListViewHelpers.ReadAttributeValue(context, attrs, MvxAndroidBindingResource.Instance.BindableListViewStylableGroupId, MvxAndroidBindingResource.Instance.BindableListItemTemplateId); adapter.ItemTemplateId = itemTemplateId; Adapter = adapter; SetupItemClickListener(); }
public MvxBindableSpinner(Context context, IAttributeSet attrs, MvxBindableListAdapter adapter) : base(context, attrs) { var itemTemplateId = MvxBindableListViewHelpers.ReadAttributeValue(context, attrs, MvxAndroidBindingResource.Instance.BindableListViewStylableGroupId, MvxAndroidBindingResource.Instance.BindableListItemTemplateId); var dropDownItemTemplateId = MvxBindableListViewHelpers.ReadAttributeValue(context, attrs, MvxAndroidBindingResource.Instance.BindableListViewStylableGroupId, MvxAndroidBindingResource.Instance.BindableDropDownListItemTemplateId); adapter.ItemTemplateId = itemTemplateId; adapter.DropDownItemTemplateId = dropDownItemTemplateId; Adapter = adapter; SetupHandleItemSelected(); }