public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.addcompliance_createlayout, null); checkBox1 = view.FindViewById <RadioButton>(Resource.Id.mandatory); checkBox2 = view.FindViewById <RadioButton>(Resource.Id.not); spinnerextension = view.FindViewById <Spinner>(Resource.Id.spiner_format); spinnertype = view.FindViewById <Spinner>(Resource.Id.spinner_type); Addtolist = view.FindViewById <Button>(Resource.Id.btn_addtolist); complianceGridview = view.FindViewById <ScrollableListView>(Resource.Id.grid_compliance); max_number = view.FindViewById <EditText>(Resource.Id.maxnumberedit); // modelsaddcompliance = new List<ComplianceJoinTable>(); checkBox1.Click += RadioButtonClick; checkBox2.Click += RadioButtonClick; getfiletypemethodAsync(); if (CreateTaskFrag.modelsaddcompliance.Count > 0) { gridattachmentlist = new GridForAttachmentCreateReference(Activity, CreateTaskFrag.modelsaddcompliance); complianceGridview.Adapter = gridattachmentlist; gridattachmentlist.NotifyDataSetChanged(); } Addtolist.Click += delegate { addtolistcompliance(); }; return(view); }
private void SetScroll(ScrollBar bar, int position) { if (!this.IsDisposed) { ScrollableListView.SetScrollPos((IntPtr)this.Handle, (int)bar, position, true); ScrollableListView.PostMessage((IntPtr)this.Handle, ScrollableListView.WM_VSCROLL, 4 + 0x10000 * position, 0); } }
public ProductListPage() { InitializeComponent(); Title = "Products"; model = new ScrollableListViewModel <productDTO, ProductSoapClient, ProductSoap>((service, quantity, offset) => { findCriteriaDTO findCriteriaDTO = new simpleCriteriaDTO() { criteria = new productDTO() }; findResultDTO findResultDTO = service.find(new[] { findCriteriaDTO }, quantity, offset); return(findResultDTO.results.Where(x => x is productDTO).Select(x => x as productDTO).ToList()); }); Content = new ScrollableListView <productDTO, ProductSoapClient, ProductSoap>(model); }
public void ReferenciarListView(ref ScrollableListView listView) { ListView = listView; }