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));
 }
示例#2
0
 public ListPickerViewModel(ListPicker owner)
 {
     this.owner = owner;
 }
示例#3
0
 public ListPickerAdapter(ListPicker listPicker)
 {
     this.ListPicker = listPicker;
 }
示例#4
0
 public ListPickerAdapter(ListPicker listPicker)
 {
     this.ListPicker = listPicker;
 }
示例#5
0
 public ListPickerViewModel(ListPicker owner)
 {
     this.owner = owner;
 }