public NativeRangePicker(Context context, ListPicker picker) : base(context) { this.Orientation = Android.Widget.Orientation.Horizontal; leftListView = new ListView(context); rightListView = new ListView(context); leftListView.Post(() => { leftListView.Adapter = new ListPickerAdapter(picker) { WidthDivider = 2f }; leftListView.OnItemSelectedListener = (ListPickerAdapter)this.leftListView.Adapter; leftListView.OnItemClickListener = (ListPickerAdapter)this.leftListView.Adapter; }); rightListView.Post(() => { rightListView.Adapter = new ListPickerAdapter(picker) { WidthDivider = 2f }; rightListView.OnItemSelectedListener = (ListPickerAdapter)this.rightListView.Adapter; rightListView.OnItemClickListener = (ListPickerAdapter)this.rightListView.Adapter; }); this.AddView(leftListView, new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent, 1)); this.AddView(rightListView, new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent, 1)); }
public ListPickerViewModel(ListPicker owner) { this.owner = owner; }
public ListPickerAdapter(ListPicker listPicker) { this.ListPicker = listPicker; }